Skip to content

Commit 66493ff

Browse files
committed
merge solved
2 parents efa847e + f79ddde commit 66493ff

18 files changed

+1052
-74
lines changed

LoadToAlgorithm.sln

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no2525", "no2525\no2525.vcx
169169
EndProject
170170
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no2480", "no2480\no2480.vcxproj", "{55F8FCA7-011E-41FC-B99D-235748B6C054}"
171171
EndProject
172-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "no15649", "no15649\no15649.vcxproj", "{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}"
173-
EndProject
174172
Global
175173
GlobalSection(SolutionConfigurationPlatforms) = preSolution
176174
Debug|x64 = Debug|x64
@@ -779,78 +777,6 @@ Global
779777
{3D4D98F1-AAFC-4788-888A-BFC4F216BCED}.Release|x64.Build.0 = Release|x64
780778
{3D4D98F1-AAFC-4788-888A-BFC4F216BCED}.Release|x86.ActiveCfg = Release|Win32
781779
{3D4D98F1-AAFC-4788-888A-BFC4F216BCED}.Release|x86.Build.0 = Release|Win32
782-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x64.ActiveCfg = Debug|x64
783-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x64.Build.0 = Debug|x64
784-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x86.ActiveCfg = Debug|Win32
785-
{FB847D53-02EA-4011-B68F-902C94899181}.Debug|x86.Build.0 = Debug|Win32
786-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x64.ActiveCfg = Release|x64
787-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x64.Build.0 = Release|x64
788-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x86.ActiveCfg = Release|Win32
789-
{FB847D53-02EA-4011-B68F-902C94899181}.Release|x86.Build.0 = Release|Win32
790-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x64.ActiveCfg = Debug|x64
791-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x64.Build.0 = Debug|x64
792-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x86.ActiveCfg = Debug|Win32
793-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Debug|x86.Build.0 = Debug|Win32
794-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x64.ActiveCfg = Release|x64
795-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x64.Build.0 = Release|x64
796-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x86.ActiveCfg = Release|Win32
797-
{EE83C429-8E4B-4953-8229-B61C201E18B9}.Release|x86.Build.0 = Release|Win32
798-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x64.ActiveCfg = Debug|x64
799-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x64.Build.0 = Debug|x64
800-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x86.ActiveCfg = Debug|Win32
801-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Debug|x86.Build.0 = Debug|Win32
802-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x64.ActiveCfg = Release|x64
803-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x64.Build.0 = Release|x64
804-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x86.ActiveCfg = Release|Win32
805-
{8FF1B014-EB8A-4164-B20B-24582BCCC979}.Release|x86.Build.0 = Release|Win32
806-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x64.ActiveCfg = Debug|x64
807-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x64.Build.0 = Debug|x64
808-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x86.ActiveCfg = Debug|Win32
809-
{69BD961D-0752-41D4-B491-75C7D247F614}.Debug|x86.Build.0 = Debug|Win32
810-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x64.ActiveCfg = Release|x64
811-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x64.Build.0 = Release|x64
812-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x86.ActiveCfg = Release|Win32
813-
{69BD961D-0752-41D4-B491-75C7D247F614}.Release|x86.Build.0 = Release|Win32
814-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x64.ActiveCfg = Debug|x64
815-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x64.Build.0 = Debug|x64
816-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x86.ActiveCfg = Debug|Win32
817-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Debug|x86.Build.0 = Debug|Win32
818-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x64.ActiveCfg = Release|x64
819-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x64.Build.0 = Release|x64
820-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x86.ActiveCfg = Release|Win32
821-
{B4F70D33-3252-4539-B8C7-2886F6DCD71C}.Release|x86.Build.0 = Release|Win32
822-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x64.ActiveCfg = Debug|x64
823-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x64.Build.0 = Debug|x64
824-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x86.ActiveCfg = Debug|Win32
825-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Debug|x86.Build.0 = Debug|Win32
826-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x64.ActiveCfg = Release|x64
827-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x64.Build.0 = Release|x64
828-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x86.ActiveCfg = Release|Win32
829-
{77FAB774-596B-4DA6-966A-933FFECC07D3}.Release|x86.Build.0 = Release|Win32
830-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x64.ActiveCfg = Debug|x64
831-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x64.Build.0 = Debug|x64
832-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x86.ActiveCfg = Debug|Win32
833-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Debug|x86.Build.0 = Debug|Win32
834-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x64.ActiveCfg = Release|x64
835-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x64.Build.0 = Release|x64
836-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x86.ActiveCfg = Release|Win32
837-
{1682E5C6-C9ED-4FF4-BC9C-76979901F5C2}.Release|x86.Build.0 = Release|Win32
838-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x64.ActiveCfg = Debug|x64
839-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x64.Build.0 = Debug|x64
840-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x86.ActiveCfg = Debug|Win32
841-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Debug|x86.Build.0 = Debug|Win32
842-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x64.ActiveCfg = Release|x64
843-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x64.Build.0 = Release|x64
844-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x86.ActiveCfg = Release|Win32
845-
{55F8FCA7-011E-41FC-B99D-235748B6C054}.Release|x86.Build.0 = Release|Win32
846-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Debug|x64.ActiveCfg = Debug|x64
847-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Debug|x64.Build.0 = Debug|x64
848-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Debug|x86.ActiveCfg = Debug|Win32
849-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Debug|x86.Build.0 = Debug|Win32
850-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Release|x64.ActiveCfg = Release|x64
851-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Release|x64.Build.0 = Release|x64
852-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Release|x86.ActiveCfg = Release|Win32
853-
{1F54B25C-51D3-4319-97F5-9F32DCE65F2D}.Release|x86.Build.0 = Release|Win32
854780
EndGlobalSection
855781
GlobalSection(SolutionProperties) = preSolution
856782
HideSolutionNode = FALSE

Project2/Project2.vcxproj

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

Project2/Project2.vcxproj.filters

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

no10815/main.cpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include <iostream>
2+
#include <vector>
3+
#include <algorithm>
4+
using namespace std;
5+
6+
7+
8+
int main() {
9+
ios::sync_with_stdio(false);
10+
cin.tie(NULL);
11+
cout.tie(NULL);
12+
13+
int N;
14+
cin >> N;
15+
vector<int> v(N);
16+
for (int i = 0; i < N; i++) {
17+
cin >> v[i];
18+
}
19+
20+
sort(v.begin(), v.end());
21+
22+
int M;
23+
cin >> M;
24+
int temp;
25+
for (int i = 0; i < M; i++) {
26+
cin >> temp;
27+
if (binary_search(v.begin(), v.end(), temp)) {
28+
cout << "1 ";
29+
}
30+
else {
31+
cout << "0 ";
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)