korkeep

Week01(for beginners)

Showing 196 changed files with 2566 additions and 0 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 +
2 +Microsoft Visual Studio Solution File, Format Version 12.00
3 +# Visual Studio 14
4 +VisualStudioVersion = 14.0.25420.1
5 +MinimumVisualStudioVersion = 10.0.40219.1
6 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab01", "lab01\lab01.vcxproj", "{BD5BF27E-602A-481B-A576-409D606C193D}"
7 +EndProject
8 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab02", "lab02\lab02.vcxproj", "{D006D9C8-F356-467A-ACF5-0C677C460C45}"
9 +EndProject
10 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab03", "lab03\lab03.vcxproj", "{62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}"
11 +EndProject
12 +Global
13 + GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 + Debug|x64 = Debug|x64
15 + Debug|x86 = Debug|x86
16 + Release|x64 = Release|x64
17 + Release|x86 = Release|x86
18 + EndGlobalSection
19 + GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 + {BD5BF27E-602A-481B-A576-409D606C193D}.Debug|x64.ActiveCfg = Debug|x64
21 + {BD5BF27E-602A-481B-A576-409D606C193D}.Debug|x64.Build.0 = Debug|x64
22 + {BD5BF27E-602A-481B-A576-409D606C193D}.Debug|x86.ActiveCfg = Debug|Win32
23 + {BD5BF27E-602A-481B-A576-409D606C193D}.Debug|x86.Build.0 = Debug|Win32
24 + {BD5BF27E-602A-481B-A576-409D606C193D}.Release|x64.ActiveCfg = Release|x64
25 + {BD5BF27E-602A-481B-A576-409D606C193D}.Release|x64.Build.0 = Release|x64
26 + {BD5BF27E-602A-481B-A576-409D606C193D}.Release|x86.ActiveCfg = Release|Win32
27 + {BD5BF27E-602A-481B-A576-409D606C193D}.Release|x86.Build.0 = Release|Win32
28 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Debug|x64.ActiveCfg = Debug|x64
29 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Debug|x64.Build.0 = Debug|x64
30 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Debug|x86.ActiveCfg = Debug|Win32
31 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Debug|x86.Build.0 = Debug|Win32
32 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Release|x64.ActiveCfg = Release|x64
33 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Release|x64.Build.0 = Release|x64
34 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Release|x86.ActiveCfg = Release|Win32
35 + {D006D9C8-F356-467A-ACF5-0C677C460C45}.Release|x86.Build.0 = Release|Win32
36 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Debug|x64.ActiveCfg = Debug|x64
37 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Debug|x64.Build.0 = Debug|x64
38 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Debug|x86.ActiveCfg = Debug|Win32
39 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Debug|x86.Build.0 = Debug|Win32
40 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Release|x64.ActiveCfg = Release|x64
41 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Release|x64.Build.0 = Release|x64
42 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Release|x86.ActiveCfg = Release|Win32
43 + {62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}.Release|x86.Build.0 = Release|Win32
44 + EndGlobalSection
45 + GlobalSection(SolutionProperties) = preSolution
46 + HideSolutionNode = FALSE
47 + EndGlobalSection
48 +EndGlobal
1 + main.cpp
2 +d:\김성수\자료\bob준비자료\algorithm공부\week01\lab01\main.cpp(20): warning C4018: '<': signed 또는 unsigned가 일치하지 않습니다.
3 + lab01.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\Debug\lab01.exe
4 + lab01.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\Debug\lab01.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{BD5BF27E-602A-481B-A576-409D606C193D}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab01</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +#include<string>
3 +using namespace std;
4 +
5 +int main() {
6 +
7 + int num, count;
8 + num = count = 0;
9 +
10 + cin >> num;
11 +
12 + string* arr;
13 + arr = new string[num];
14 +
15 + char temp;
16 +
17 + for (int i = 0; i < num; i++) {
18 + cin >> arr[i];
19 +
20 + for (int j = 0; j < arr[i].size(); j++) {
21 + temp = arr[i].at(j);
22 + if (j == arr[i].size() - 1) {
23 + count++;
24 + }
25 + else if (arr[i].find(temp, j + 1) == -1) {
26 + continue;
27 + }
28 + else if (arr[i].find(temp, j + 1) != j + 1) {
29 + break;
30 + }
31 + }
32 + }
33 +
34 + cout << count << endl;
35 +
36 + delete[] arr;
37 +
38 + return 0;
39 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 +d:\김성수\자료\bob준비자료\algorithm공부\week01\lab02\main.cpp(30): warning C4018: '<': signed 또는 unsigned가 일치하지 않습니다.
3 + lab02.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\Debug\lab02.exe
4 + lab02.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\Debug\lab02.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{D006D9C8-F356-467A-ACF5-0C677C460C45}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab02</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +#include<string>
3 +using namespace std;
4 +
5 +int sum(int x) {
6 + int cnt, result;
7 + cnt = result = 0;
8 +
9 + while (cnt < x) {
10 + cnt++;
11 + result += cnt;
12 + }
13 +
14 + return result;
15 +}
16 +
17 +int main() {
18 + int num, count, temp, temp2, replay;
19 +
20 + cin >> num;
21 +
22 + string* OX;
23 + int* result;
24 + OX = new string[num];
25 + result = new int[num];
26 +
27 + for (int i = 0; i < num; i++) {
28 + cin >> OX[i];
29 + count = temp = 0;
30 + while (temp < OX[i].size()) {
31 + temp2 = temp;
32 + temp = OX[i].find('X', temp2);
33 + if (temp == temp2 || temp == 0)
34 + {
35 + temp++;
36 + temp2++;
37 + continue;
38 + }
39 + else if(temp == -1)
40 + {
41 + count += sum(OX[i].size() - temp2);
42 + break;
43 + }
44 + else
45 + {
46 + replay = temp - temp2;
47 + count += sum(replay);
48 + }
49 + }
50 + result[i] = count;
51 + }
52 +
53 + for (int i = 0; i < num; i++) {
54 + cout << result[i] << endl;
55 + }
56 +
57 + delete[] OX;
58 + delete[] result;
59 + return 0;
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 + lab03.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\Debug\lab03.exe
3 + lab03.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\Debug\lab03.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\자료\BOB준비자료\Algorithm공부\Week01\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{62F9BDC5-12B7-4DDD-8227-B2CCA177EDAC}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab03</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +
5 +
6 +int main() {
7 +
8 + int dayCount, day, month;
9 + dayCount = 0;
10 +
11 + cin >> month >> day;
12 +
13 + switch (month) {
14 + case 1:
15 + dayCount += 31;
16 + case 2:
17 + dayCount += 28;
18 + case 3:
19 + dayCount += 31;
20 + case 4:
21 + dayCount += 30;
22 + case 5:
23 + dayCount += 31;
24 + case 6:
25 + dayCount += 30;
26 + case 7:
27 + dayCount += 31;
28 + case 8:
29 + dayCount += 31;
30 + case 9:
31 + dayCount += 30;
32 + case 10:
33 + dayCount += 31;
34 + case 11:
35 + dayCount += 30;
36 + case 12:
37 + dayCount += 31;
38 + }
39 +
40 + //Switch Case문은 해당 case로 넘어가 밑에까지 합
41 + dayCount = 365 - dayCount;
42 + dayCount += day;
43 +
44 + switch(dayCount % 7) {
45 + case 0:
46 + cout << "SUN" << endl;
47 + break;
48 + case 1:
49 + cout << "MON" << endl;
50 + break;
51 + case 2:
52 + cout << "TUE" << endl;
53 + break;
54 + case 3:
55 + cout << "WED" << endl;
56 + break;
57 + case 4:
58 + cout << "THU" << endl;
59 + break;
60 + case 5:
61 + cout << "FRI" << endl;
62 + break;
63 + case 6:
64 + cout << "SAT" << endl;
65 + break;
66 + }
67 +
68 + return 0;
69 +}
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 +
2 +Microsoft Visual Studio Solution File, Format Version 12.00
3 +# Visual Studio 14
4 +VisualStudioVersion = 14.0.25420.1
5 +MinimumVisualStudioVersion = 10.0.40219.1
6 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab01", "lab01\lab01.vcxproj", "{24F11107-72ED-4018-B327-FF62084543FE}"
7 +EndProject
8 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab02", "lab02\lab02.vcxproj", "{F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}"
9 +EndProject
10 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab03", "lab03\lab03.vcxproj", "{1F9F7F3C-324F-40E0-972C-9E51D9A4875D}"
11 +EndProject
12 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab04", "lab04\lab04.vcxproj", "{EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}"
13 +EndProject
14 +Global
15 + GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 + Debug|x64 = Debug|x64
17 + Debug|x86 = Debug|x86
18 + Release|x64 = Release|x64
19 + Release|x86 = Release|x86
20 + EndGlobalSection
21 + GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 + {24F11107-72ED-4018-B327-FF62084543FE}.Debug|x64.ActiveCfg = Debug|x64
23 + {24F11107-72ED-4018-B327-FF62084543FE}.Debug|x64.Build.0 = Debug|x64
24 + {24F11107-72ED-4018-B327-FF62084543FE}.Debug|x86.ActiveCfg = Debug|Win32
25 + {24F11107-72ED-4018-B327-FF62084543FE}.Debug|x86.Build.0 = Debug|Win32
26 + {24F11107-72ED-4018-B327-FF62084543FE}.Release|x64.ActiveCfg = Release|x64
27 + {24F11107-72ED-4018-B327-FF62084543FE}.Release|x64.Build.0 = Release|x64
28 + {24F11107-72ED-4018-B327-FF62084543FE}.Release|x86.ActiveCfg = Release|Win32
29 + {24F11107-72ED-4018-B327-FF62084543FE}.Release|x86.Build.0 = Release|Win32
30 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Debug|x64.ActiveCfg = Debug|x64
31 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Debug|x64.Build.0 = Debug|x64
32 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Debug|x86.ActiveCfg = Debug|Win32
33 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Debug|x86.Build.0 = Debug|Win32
34 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Release|x64.ActiveCfg = Release|x64
35 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Release|x64.Build.0 = Release|x64
36 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Release|x86.ActiveCfg = Release|Win32
37 + {F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}.Release|x86.Build.0 = Release|Win32
38 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Debug|x64.ActiveCfg = Debug|x64
39 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Debug|x64.Build.0 = Debug|x64
40 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Debug|x86.ActiveCfg = Debug|Win32
41 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Debug|x86.Build.0 = Debug|Win32
42 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Release|x64.ActiveCfg = Release|x64
43 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Release|x64.Build.0 = Release|x64
44 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Release|x86.ActiveCfg = Release|Win32
45 + {1F9F7F3C-324F-40E0-972C-9E51D9A4875D}.Release|x86.Build.0 = Release|Win32
46 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Debug|x64.ActiveCfg = Debug|x64
47 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Debug|x64.Build.0 = Debug|x64
48 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Debug|x86.ActiveCfg = Debug|Win32
49 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Debug|x86.Build.0 = Debug|Win32
50 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Release|x64.ActiveCfg = Release|x64
51 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Release|x64.Build.0 = Release|x64
52 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Release|x86.ActiveCfg = Release|Win32
53 + {EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}.Release|x86.Build.0 = Release|Win32
54 + EndGlobalSection
55 + GlobalSection(SolutionProperties) = preSolution
56 + HideSolutionNode = FALSE
57 + EndGlobalSection
58 +EndGlobal
1 + main.cpp
2 + lab01.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week02\Debug\lab01.exe
3 + lab01.vcxproj -> D:\김성수\자료\BOB준비자료\Algorithm공부\Week02\Debug\lab01.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\자료\BOB준비자료\Algorithm공부\Week02\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{24F11107-72ED-4018-B327-FF62084543FE}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab01</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int main() {
5 +
6 + int temp, input, count, fNum, bNum;
7 + fNum = bNum = temp = input = count = 0;
8 +
9 + cin >> input;
10 + temp = input;
11 +
12 + while (temp != input || count == 0) {
13 + count++;
14 + fNum = temp / 10;
15 + bNum = temp % 10;
16 + temp = fNum + bNum;
17 + if (temp < 10)
18 + temp += bNum * 10;
19 + else
20 + temp = temp % 10 + bNum * 10;
21 + }
22 + cout << count << endl;
23 +
24 + return 0;
25 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 +d:\김성수\개인공부\algorithm공부\week02\lab02\main.cpp(19): warning C4018: '<': signed 또는 unsigned가 일치하지 않습니다.
3 + lab02.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week02\Debug\lab02.exe
4 + lab02.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week02\Debug\lab02.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week02\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{F6F61CDA-6A78-47BF-8B5D-050FA7E536CB}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab02</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int factorial(int x) {
5 + int result = 0;
6 + for (int i = 1; i <= x; i++) {
7 + result += i;
8 + }
9 + return result;
10 +}
11 +
12 +int main() {
13 +
14 + int input, temp1, temp2;
15 + input = temp1 = temp2 = 0;
16 +
17 + cin >> input;
18 + int* arr = new int[factorial(input)];
19 + for (int i = 0; i < factorial(input); i++) {
20 + cin >> arr[i];
21 + }
22 +
23 + int counter = 0;
24 + for (int i = input; i > 0; i--) {
25 + counter = factorial(i - 1);
26 + for (int j = 0; j < i - 1; j++) {
27 + if (arr[counter] > arr[counter + 1]) {
28 + arr[counter - i + 1] += arr[counter];
29 + }
30 + else {
31 + arr[counter - i + 1] += arr[counter + 1];
32 + }
33 + counter++;
34 + }
35 + }
36 +
37 + cout << arr[0] << endl;
38 +
39 + delete[] arr;
40 + return 0;
41 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 + lab03.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week02\Debug\lab03.exe
3 + lab03.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week02\Debug\lab03.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week02\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{1F9F7F3C-324F-40E0-972C-9E51D9A4875D}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab03</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int Fibonazzi(int x) {
5 + /*if (x == 0)
6 + return 0;
7 + else if (x == 1)
8 + return 1;
9 + else
10 + return Fibonazzi(x - 1) + Fibonazzi(x - 2);*/
11 + if (x == 0)
12 + return 0;
13 + else if (x == 1)
14 + return 1;
15 + else {
16 + int result, num1, num2;
17 + result = num1 = 0;
18 + num2 = 1;
19 +
20 + for (int i = 1; i < x; i++) {
21 + result = num1 + num2;
22 + num1 = num2;
23 + num2 = result;
24 + }
25 + return result;
26 + }
27 +}
28 +
29 +int main() {
30 + int input = 0;
31 + cin >> input;
32 + cout << Fibonazzi(input) << endl;
33 +
34 + return 0;
35 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 + lab04.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week02\Debug\lab04.exe
3 + lab04.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week02\Debug\lab04.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week02\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{EA8608D0-6C86-40E4-AA13-EB2A659F5FD9}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab04</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int main() {
5 +
6 + int input = 0;
7 + cin >> input;
8 +
9 + int** arr;
10 + arr = new int* [input];
11 +
12 + for (int i = 0; i < input; i++) {
13 + arr[i] = new int[3];
14 + for (int j = 0; j < 3; j++) {
15 + cin >> arr[i][j];
16 + }
17 + }
18 +
19 + for (int i = 0; i < input - 1; i++) {
20 + if (arr[i][1] > arr[i][2]) {
21 + arr[i + 1][0] += arr[i][2];
22 + }
23 + else {
24 + arr[i + 1][0] += arr[i][1];
25 + }
26 + if (arr[i][0] > arr[i][2]) {
27 + arr[i + 1][1] += arr[i][2];
28 + }
29 + else {
30 + arr[i + 1][1] += arr[i][0];
31 + }
32 + if (arr[i][0] > arr[i][1]) {
33 + arr[i + 1][2] += arr[i][1];
34 + }
35 + else {
36 + arr[i + 1][2] += arr[i][0];
37 + }
38 + }
39 +
40 + int max = 2147483647;
41 + for (int j = 0; j < 3; j++) {
42 + if (max > arr[input - 1][j]) {
43 + max = arr[input - 1][j];
44 + }
45 + }
46 + cout << max << endl;
47 +
48 + for (int j = 0; j < 3; j++) {
49 + delete[] * (arr + j);
50 + }
51 + delete[] arr;
52 + return 0;
53 +}
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 +
2 +Microsoft Visual Studio Solution File, Format Version 12.00
3 +# Visual Studio 14
4 +VisualStudioVersion = 14.0.25420.1
5 +MinimumVisualStudioVersion = 10.0.40219.1
6 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab01", "lab01\lab01.vcxproj", "{C6BEF8D7-1882-418F-A30F-D17F1D967B4C}"
7 +EndProject
8 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab02", "lab02\lab02.vcxproj", "{66DB373E-6488-41FA-92B6-52FB32C7784E}"
9 +EndProject
10 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab03", "lab03\lab03.vcxproj", "{933F81A1-C474-4F47-A2D7-2501EE2BEB1C}"
11 +EndProject
12 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab04", "lab04\lab04.vcxproj", "{0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}"
13 +EndProject
14 +Global
15 + GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 + Debug|x64 = Debug|x64
17 + Debug|x86 = Debug|x86
18 + Release|x64 = Release|x64
19 + Release|x86 = Release|x86
20 + EndGlobalSection
21 + GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Debug|x64.ActiveCfg = Debug|x64
23 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Debug|x64.Build.0 = Debug|x64
24 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Debug|x86.ActiveCfg = Debug|Win32
25 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Debug|x86.Build.0 = Debug|Win32
26 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Release|x64.ActiveCfg = Release|x64
27 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Release|x64.Build.0 = Release|x64
28 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Release|x86.ActiveCfg = Release|Win32
29 + {C6BEF8D7-1882-418F-A30F-D17F1D967B4C}.Release|x86.Build.0 = Release|Win32
30 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Debug|x64.ActiveCfg = Debug|x64
31 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Debug|x64.Build.0 = Debug|x64
32 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Debug|x86.ActiveCfg = Debug|Win32
33 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Debug|x86.Build.0 = Debug|Win32
34 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Release|x64.ActiveCfg = Release|x64
35 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Release|x64.Build.0 = Release|x64
36 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Release|x86.ActiveCfg = Release|Win32
37 + {66DB373E-6488-41FA-92B6-52FB32C7784E}.Release|x86.Build.0 = Release|Win32
38 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Debug|x64.ActiveCfg = Debug|x64
39 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Debug|x64.Build.0 = Debug|x64
40 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Debug|x86.ActiveCfg = Debug|Win32
41 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Debug|x86.Build.0 = Debug|Win32
42 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Release|x64.ActiveCfg = Release|x64
43 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Release|x64.Build.0 = Release|x64
44 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Release|x86.ActiveCfg = Release|Win32
45 + {933F81A1-C474-4F47-A2D7-2501EE2BEB1C}.Release|x86.Build.0 = Release|Win32
46 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Debug|x64.ActiveCfg = Debug|x64
47 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Debug|x64.Build.0 = Debug|x64
48 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Debug|x86.ActiveCfg = Debug|Win32
49 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Debug|x86.Build.0 = Debug|Win32
50 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Release|x64.ActiveCfg = Release|x64
51 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Release|x64.Build.0 = Release|x64
52 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Release|x86.ActiveCfg = Release|Win32
53 + {0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}.Release|x86.Build.0 = Release|Win32
54 + EndGlobalSection
55 + GlobalSection(SolutionProperties) = preSolution
56 + HideSolutionNode = FALSE
57 + EndGlobalSection
58 +EndGlobal
1 + lab01.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab01.exe
2 + lab01.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab01.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week03\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{C6BEF8D7-1882-418F-A30F-D17F1D967B4C}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab01</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +#include<string>
3 +using namespace std;
4 +
5 +int main() {
6 +
7 + int result = 0;
8 + string input = "";
9 + cin >> input;
10 +
11 + int tempN = 0;
12 + for (int i = 0; i < input.size(); i++) {
13 + if (int(input.at(i)) < 83) {
14 + tempN = (int(input.at(i)) - 56) / 3;
15 + }
16 + else if (int(input.at(i)) != 90) {
17 + tempN = (int(input.at(i)) - 57) / 3;
18 + }
19 + else {
20 + tempN = (int(input.at(i)) - 58) / 3;
21 + }
22 + result += tempN;
23 + }
24 +
25 + cout << result << endl;
26 +
27 + return 0;
28 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 + lab02.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab02.exe
3 + lab02.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab02.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week03\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{66DB373E-6488-41FA-92B6-52FB32C7784E}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab02</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int main() {
5 +
6 + int ascending[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
7 + int descending[8] = { 8, 7, 6, 5, 4, 3, 2, 1 };
8 + int input[8];
9 + bool flagA, flagD;
10 + flagA = flagD = 1;
11 +
12 + for (int i = 0; i < sizeof(input) / 4; i++) {
13 + cin >> input[i];
14 + if (input[i] == ascending[i] && flagA) {
15 + flagD = 0;
16 + continue;
17 + }
18 + else if (input[i] == descending[i] && flagD) {
19 + flagA = 0;
20 + continue;
21 + }
22 + else {
23 + cout << "mixed" << endl;
24 + return 0;
25 + }
26 + }
27 +
28 + if (flagA) {
29 + cout << "ascending" << endl;
30 + }
31 + else if (flagD) {
32 + cout << "descending" << endl;
33 + }
34 + else {
35 + cout << "mixed" << endl;
36 + }
37 +
38 + return 0;
39 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 + lab03.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab03.exe
3 + lab03.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab03.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week03\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{933F81A1-C474-4F47-A2D7-2501EE2BEB1C}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab03</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int main() {
5 +
6 + int temp;
7 + bool flag = 1;
8 + for (int i = 1; i <= 10000; i++) {
9 + for (int j = 1; j < i; j++) {
10 + temp = j + j % 10 + (j / 10) % 10 + (j / 100) % 10 + (j / 1000) % 10;
11 + if (i == temp) {
12 + flag = 0;
13 + break;
14 + }
15 + }
16 + if (flag) {
17 + cout << i << endl;
18 + }
19 + flag = 1;
20 + }
21 +
22 + return 0;
23 +}
...\ No newline at end of file ...\ No newline at end of file
1 + main.cpp
2 + lab04.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab04.exe
3 + lab04.vcxproj -> D:\김성수\개인공부\Algorithm공부\Week03\Debug\lab04.pdb (Full PDB)
1 +#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 +Debug|Win32|D:\김성수\개인공부\Algorithm공부\Week03\|
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Project DefaultTargets="Build" ToolsVersion="14.0" 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 + <ProjectGuid>{0C1F7F82-C0CC-4BEA-9744-986F8A025DAA}</ProjectGuid>
23 + <Keyword>Win32Proj</Keyword>
24 + <RootNamespace>lab04</RootNamespace>
25 + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26 + </PropertyGroup>
27 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29 + <ConfigurationType>Application</ConfigurationType>
30 + <UseDebugLibraries>true</UseDebugLibraries>
31 + <PlatformToolset>v140</PlatformToolset>
32 + <CharacterSet>Unicode</CharacterSet>
33 + </PropertyGroup>
34 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35 + <ConfigurationType>Application</ConfigurationType>
36 + <UseDebugLibraries>false</UseDebugLibraries>
37 + <PlatformToolset>v140</PlatformToolset>
38 + <WholeProgramOptimization>true</WholeProgramOptimization>
39 + <CharacterSet>Unicode</CharacterSet>
40 + </PropertyGroup>
41 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42 + <ConfigurationType>Application</ConfigurationType>
43 + <UseDebugLibraries>true</UseDebugLibraries>
44 + <PlatformToolset>v140</PlatformToolset>
45 + <CharacterSet>Unicode</CharacterSet>
46 + </PropertyGroup>
47 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48 + <ConfigurationType>Application</ConfigurationType>
49 + <UseDebugLibraries>false</UseDebugLibraries>
50 + <PlatformToolset>v140</PlatformToolset>
51 + <WholeProgramOptimization>true</WholeProgramOptimization>
52 + <CharacterSet>Unicode</CharacterSet>
53 + </PropertyGroup>
54 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55 + <ImportGroup Label="ExtensionSettings">
56 + </ImportGroup>
57 + <ImportGroup Label="Shared">
58 + </ImportGroup>
59 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61 + </ImportGroup>
62 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 + </ImportGroup>
65 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67 + </ImportGroup>
68 + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69 + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 + </ImportGroup>
71 + <PropertyGroup Label="UserMacros" />
72 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73 + <LinkIncremental>true</LinkIncremental>
74 + </PropertyGroup>
75 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
76 + <LinkIncremental>true</LinkIncremental>
77 + </PropertyGroup>
78 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79 + <LinkIncremental>false</LinkIncremental>
80 + </PropertyGroup>
81 + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82 + <LinkIncremental>false</LinkIncremental>
83 + </PropertyGroup>
84 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
85 + <ClCompile>
86 + <PrecompiledHeader>
87 + </PrecompiledHeader>
88 + <WarningLevel>Level3</WarningLevel>
89 + <Optimization>Disabled</Optimization>
90 + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
91 + </ClCompile>
92 + <Link>
93 + <SubSystem>Console</SubSystem>
94 + <GenerateDebugInformation>true</GenerateDebugInformation>
95 + </Link>
96 + </ItemDefinitionGroup>
97 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98 + <ClCompile>
99 + <PrecompiledHeader>
100 + </PrecompiledHeader>
101 + <WarningLevel>Level3</WarningLevel>
102 + <Optimization>Disabled</Optimization>
103 + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104 + </ClCompile>
105 + <Link>
106 + <SubSystem>Console</SubSystem>
107 + <GenerateDebugInformation>true</GenerateDebugInformation>
108 + </Link>
109 + </ItemDefinitionGroup>
110 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
111 + <ClCompile>
112 + <WarningLevel>Level3</WarningLevel>
113 + <PrecompiledHeader>
114 + </PrecompiledHeader>
115 + <Optimization>MaxSpeed</Optimization>
116 + <FunctionLevelLinking>true</FunctionLevelLinking>
117 + <IntrinsicFunctions>true</IntrinsicFunctions>
118 + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119 + </ClCompile>
120 + <Link>
121 + <SubSystem>Console</SubSystem>
122 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
123 + <OptimizeReferences>true</OptimizeReferences>
124 + <GenerateDebugInformation>true</GenerateDebugInformation>
125 + </Link>
126 + </ItemDefinitionGroup>
127 + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128 + <ClCompile>
129 + <WarningLevel>Level3</WarningLevel>
130 + <PrecompiledHeader>
131 + </PrecompiledHeader>
132 + <Optimization>MaxSpeed</Optimization>
133 + <FunctionLevelLinking>true</FunctionLevelLinking>
134 + <IntrinsicFunctions>true</IntrinsicFunctions>
135 + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136 + </ClCompile>
137 + <Link>
138 + <SubSystem>Console</SubSystem>
139 + <EnableCOMDATFolding>true</EnableCOMDATFolding>
140 + <OptimizeReferences>true</OptimizeReferences>
141 + <GenerateDebugInformation>true</GenerateDebugInformation>
142 + </Link>
143 + </ItemDefinitionGroup>
144 + <ItemGroup>
145 + <ClCompile Include="main.cpp" />
146 + </ItemGroup>
147 + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
148 + <ImportGroup Label="ExtensionTargets">
149 + </ImportGroup>
150 +</Project>
...\ No newline at end of file ...\ No newline at end of file
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;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;hm;inl;inc;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>
...\ No newline at end of file ...\ No newline at end of file
1 +#include<iostream>
2 +using namespace std;
3 +
4 +int main() {
5 +
6 + int num;
7 + cin >> num;
8 +
9 + int *list = new int[num];
10 + int *max = new int[num];
11 + for (int i = 0; i < num; i++) {
12 + cin >> list[i];
13 + max[i] = 0;
14 + }
15 +
16 + if (num == 1) {
17 + max[0] = list[0];
18 + }
19 + else if (num == 2) {
20 + max[1] = list[0] + list[1];
21 + }
22 + else {
23 + max[0] = list[0];
24 + max[1] = list[0] + list[1];
25 + for (int i = 2; i < num; i++) {
26 + max[i] = max[i - 1];
27 + if (max[i] < list[i] + list[i - 1] + max[i - 3]) {
28 + max[i] = list[i] + list[i - 1] + max[i - 3];
29 + }
30 + if (max[i] < max[i - 2] + list[i]) {
31 + max[i] = max[i - 2] + list[i];
32 + }
33 + }
34 + }
35 +
36 + cout << max[num - 1] << endl;
37 +
38 + delete[] max;
39 + delete[] list;
40 + return 0;
41 +}
...\ No newline at end of file ...\ No newline at end of file