File tree 3 files changed +26
-1
lines changed
3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 145
145
<ClCompile Include =" 로프.cpp" >
146
146
<ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Debug|x64'" >true</ExcludedFromBuild >
147
147
</ClCompile >
148
- <ClCompile Include =" 예산.cpp" />
148
+ <ClCompile Include =" 예산.cpp" >
149
+ <ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Debug|x64'" >true</ExcludedFromBuild >
150
+ </ClCompile >
149
151
<ClCompile Include =" 유기농 배추_re.cpp" >
150
152
<ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Debug|x64'" >true</ExcludedFromBuild >
151
153
</ClCompile >
154
+ <ClCompile Include =" 주사위 게임.cpp" />
152
155
<ClCompile Include =" 최대 힙_re.cpp" >
153
156
<ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Debug|x64'" >true</ExcludedFromBuild >
154
157
</ClCompile >
Original file line number Diff line number Diff line change 30
30
<ClCompile Include =" 예산.cpp" >
31
31
<Filter >소스 파일</Filter >
32
32
</ClCompile >
33
+ <ClCompile Include =" 주사위 게임.cpp" >
34
+ <Filter >소스 파일</Filter >
35
+ </ClCompile >
33
36
</ItemGroup >
34
37
</Project >
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ using namespace std ;
3
+
4
+ int main (void ) {
5
+ int one = 100 , two = 100 ;
6
+ int n;
7
+ cin >> n;
8
+ for (int i = 0 ; i < 4 ; i++) {
9
+ int A, B;
10
+ cin >> A >> B;
11
+ if (A > B) {
12
+ two = two - A;
13
+ }
14
+ else if (A < B) {
15
+ one = one - B;
16
+ }
17
+ }
18
+ cout << one << ' \n ' << two;
19
+ }
You can’t perform that action at this time.
0 commit comments