Skip to content

Commit 8aedab5

Browse files
committed
no2745
2 parents 94ba9a5 + b189349 commit 8aedab5

File tree

4 files changed

+181
-94
lines changed

4 files changed

+181
-94
lines changed

LoadToAlgorithm.sln

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no2525", "no2525\no2525.vcx
169169
EndProject
170170
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no2480", "no2480\no2480.vcxproj", "{55F8FCA7-011E-41FC-B99D-235748B6C054}"
171171
EndProject
172-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no28278", "no28278\no28278.vcxproj", "{29A313E3-5400-4822-AFD9-64D992043645}"
173-
EndProject
174-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no2346", "no2346\no2346.vcxproj", "{7B340653-4257-47C4-B52A-D5959C9CF91D}"
175-
EndProject
176-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no1920", "no1920\no1920.vcxproj", "{8AC1337E-FB44-4273-8547-1C6153C07592}"
177-
EndProject
178172
Global
179173
GlobalSection(SolutionConfigurationPlatforms) = preSolution
180174
Debug|x64 = Debug|x64
@@ -783,94 +777,6 @@ Global
783777
{3D4D98F1-AAFC-4788-888A-BFC4F216BCED}.Release|x64.Build.0 = Release|x64
784778
{3D4D98F1-AAFC-4788-888A-BFC4F216BCED}.Release|x86.ActiveCfg = Release|Win32
785779
{3D4D98F1-AAFC-4788-888A-BFC4F216BCED}.Release|x86.Build.0 = Release|Win32
786-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x64.ActiveCfg = Debug|x64
787-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x64.Build.0 = Debug|x64
788-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x86.ActiveCfg = Debug|Win32
789-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x86.Build.0 = Debug|Win32
790-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x64.ActiveCfg = Release|x64
791-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x64.Build.0 = Release|x64
792-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x86.ActiveCfg = Release|Win32
793-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x86.Build.0 = Release|Win32
794-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x64.ActiveCfg = Debug|x64
795-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x64.Build.0 = Debug|x64
796-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x86.ActiveCfg = Debug|Win32
797-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x86.Build.0 = Debug|Win32
798-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x64.ActiveCfg = Release|x64
799-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x64.Build.0 = Release|x64
800-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x86.ActiveCfg = Release|Win32
801-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x86.Build.0 = Release|Win32
802-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x64.ActiveCfg = Debug|x64
803-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x64.Build.0 = Debug|x64
804-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x86.ActiveCfg = Debug|Win32
805-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x86.Build.0 = Debug|Win32
806-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x64.ActiveCfg = Release|x64
807-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x64.Build.0 = Release|x64
808-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x86.ActiveCfg = Release|Win32
809-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x86.Build.0 = Release|Win32
810-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x64.ActiveCfg = Debug|x64
811-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x64.Build.0 = Debug|x64
812-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x86.ActiveCfg = Debug|Win32
813-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x86.Build.0 = Debug|Win32
814-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x64.ActiveCfg = Release|x64
815-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x64.Build.0 = Release|x64
816-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x86.ActiveCfg = Release|Win32
817-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x86.Build.0 = Release|Win32
818-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x64.ActiveCfg = Debug|x64
819-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x64.Build.0 = Debug|x64
820-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x86.ActiveCfg = Debug|Win32
821-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x86.Build.0 = Debug|Win32
822-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x64.ActiveCfg = Release|x64
823-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x64.Build.0 = Release|x64
824-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x86.ActiveCfg = Release|Win32
825-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x86.Build.0 = Release|Win32
826-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x64.ActiveCfg = Debug|x64
827-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x64.Build.0 = Debug|x64
828-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x86.ActiveCfg = Debug|Win32
829-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x86.Build.0 = Debug|Win32
830-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x64.ActiveCfg = Release|x64
831-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x64.Build.0 = Release|x64
832-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x86.ActiveCfg = Release|Win32
833-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x86.Build.0 = Release|Win32
834-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x64.ActiveCfg = Debug|x64
835-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x64.Build.0 = Debug|x64
836-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x86.ActiveCfg = Debug|Win32
837-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x86.Build.0 = Debug|Win32
838-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x64.ActiveCfg = Release|x64
839-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x64.Build.0 = Release|x64
840-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x86.ActiveCfg = Release|Win32
841-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x86.Build.0 = Release|Win32
842-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x64.ActiveCfg = Debug|x64
843-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x64.Build.0 = Debug|x64
844-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x86.ActiveCfg = Debug|Win32
845-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x86.Build.0 = Debug|Win32
846-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x64.ActiveCfg = Release|x64
847-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x64.Build.0 = Release|x64
848-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x86.ActiveCfg = Release|Win32
849-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x86.Build.0 = Release|Win32
850-
{29A313E3-5400-4822-AFD9-64D992043645}.Debug|x64.ActiveCfg = Debug|x64
851-
{29A313E3-5400-4822-AFD9-64D992043645}.Debug|x64.Build.0 = Debug|x64
852-
{29A313E3-5400-4822-AFD9-64D992043645}.Debug|x86.ActiveCfg = Debug|Win32
853-
{29A313E3-5400-4822-AFD9-64D992043645}.Debug|x86.Build.0 = Debug|Win32
854-
{29A313E3-5400-4822-AFD9-64D992043645}.Release|x64.ActiveCfg = Release|x64
855-
{29A313E3-5400-4822-AFD9-64D992043645}.Release|x64.Build.0 = Release|x64
856-
{29A313E3-5400-4822-AFD9-64D992043645}.Release|x86.ActiveCfg = Release|Win32
857-
{29A313E3-5400-4822-AFD9-64D992043645}.Release|x86.Build.0 = Release|Win32
858-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Debug|x64.ActiveCfg = Debug|x64
859-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Debug|x64.Build.0 = Debug|x64
860-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Debug|x86.ActiveCfg = Debug|Win32
861-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Debug|x86.Build.0 = Debug|Win32
862-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Release|x64.ActiveCfg = Release|x64
863-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Release|x64.Build.0 = Release|x64
864-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Release|x86.ActiveCfg = Release|Win32
865-
{7B340653-4257-47C4-B52A-D5959C9CF91D}.Release|x86.Build.0 = Release|Win32
866-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Debug|x64.ActiveCfg = Debug|x64
867-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Debug|x64.Build.0 = Debug|x64
868-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Debug|x86.ActiveCfg = Debug|Win32
869-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Debug|x86.Build.0 = Debug|Win32
870-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Release|x64.ActiveCfg = Release|x64
871-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Release|x64.Build.0 = Release|x64
872-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Release|x86.ActiveCfg = Release|Win32
873-
{8AC1337E-FB44-4273-8547-1C6153C07592}.Release|x86.Build.0 = Release|Win32
874780
EndGlobalSection
875781
GlobalSection(SolutionProperties) = preSolution
876782
HideSolutionNode = FALSE

no2745/main.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#include <iostream>
2+
#include <vector>
3+
#include <algorithm>
4+
using namespace std;
5+
6+
7+
8+
int main() {
9+
ios::sync_with_stdio(false);
10+
cin.tie(nullptr);
11+
12+
string N;
13+
int B;
14+
if (!(cin >> N >> B)) return 0;
15+
16+
long long ans = 0;
17+
for (char c : N) {
18+
int v;
19+
if ('0' <= c && c <= '9') v = c - '0';
20+
else {
21+
c = toupper(static_cast<unsigned char>(c));
22+
v = c - 'A' + 10;
23+
}
24+
ans = ans * B + v;
25+
}
26+
cout << ans << '\n';
27+
return 0;
28+
}

no2745/no2745.vcxproj

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>17.0</VCProjectVersion>
23+
<Keyword>Win32Proj</Keyword>
24+
<ProjectGuid>{d458f36c-aba1-4bed-89de-db03a0c50488}</ProjectGuid>
25+
<RootNamespace>no2745</RootNamespace>
26+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
27+
</PropertyGroup>
28+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+
<ConfigurationType>Application</ConfigurationType>
31+
<UseDebugLibraries>true</UseDebugLibraries>
32+
<PlatformToolset>v143</PlatformToolset>
33+
<CharacterSet>Unicode</CharacterSet>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+
<ConfigurationType>Application</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v143</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>Unicode</CharacterSet>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43+
<ConfigurationType>Application</ConfigurationType>
44+
<UseDebugLibraries>true</UseDebugLibraries>
45+
<PlatformToolset>v143</PlatformToolset>
46+
<CharacterSet>Unicode</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+
<ConfigurationType>Application</ConfigurationType>
50+
<UseDebugLibraries>false</UseDebugLibraries>
51+
<PlatformToolset>v143</PlatformToolset>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56+
<ImportGroup Label="ExtensionSettings">
57+
</ImportGroup>
58+
<ImportGroup Label="Shared">
59+
</ImportGroup>
60+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<PropertyGroup Label="UserMacros" />
73+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74+
<ClCompile>
75+
<WarningLevel>Level3</WarningLevel>
76+
<SDLCheck>true</SDLCheck>
77+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
78+
<ConformanceMode>true</ConformanceMode>
79+
</ClCompile>
80+
<Link>
81+
<SubSystem>Console</SubSystem>
82+
<GenerateDebugInformation>true</GenerateDebugInformation>
83+
</Link>
84+
</ItemDefinitionGroup>
85+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
86+
<ClCompile>
87+
<WarningLevel>Level3</WarningLevel>
88+
<FunctionLevelLinking>true</FunctionLevelLinking>
89+
<IntrinsicFunctions>true</IntrinsicFunctions>
90+
<SDLCheck>true</SDLCheck>
91+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
92+
<ConformanceMode>true</ConformanceMode>
93+
</ClCompile>
94+
<Link>
95+
<SubSystem>Console</SubSystem>
96+
<GenerateDebugInformation>true</GenerateDebugInformation>
97+
</Link>
98+
</ItemDefinitionGroup>
99+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
100+
<ClCompile>
101+
<WarningLevel>Level3</WarningLevel>
102+
<SDLCheck>true</SDLCheck>
103+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104+
<ConformanceMode>true</ConformanceMode>
105+
</ClCompile>
106+
<Link>
107+
<SubSystem>Console</SubSystem>
108+
<GenerateDebugInformation>true</GenerateDebugInformation>
109+
</Link>
110+
</ItemDefinitionGroup>
111+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
112+
<ClCompile>
113+
<WarningLevel>Level3</WarningLevel>
114+
<FunctionLevelLinking>true</FunctionLevelLinking>
115+
<IntrinsicFunctions>true</IntrinsicFunctions>
116+
<SDLCheck>true</SDLCheck>
117+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
118+
<ConformanceMode>true</ConformanceMode>
119+
</ClCompile>
120+
<Link>
121+
<SubSystem>Console</SubSystem>
122+
<GenerateDebugInformation>true</GenerateDebugInformation>
123+
</Link>
124+
</ItemDefinitionGroup>
125+
<ItemGroup>
126+
<ClCompile Include="main.cpp" />
127+
</ItemGroup>
128+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
129+
<ImportGroup Label="ExtensionTargets">
130+
</ImportGroup>
131+
</Project>

no2745/no2745.vcxproj.filters

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="소스 파일">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="헤더 파일">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="리소스 파일">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="main.cpp">
19+
<Filter>소스 파일</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
</Project>

0 commit comments

Comments
 (0)