File tree 6 files changed +64
-0
lines changed
Online Judges/Neps Academy/Batalha (OBI 2018)
6 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
+ <CodeBlocks_project_file >
3
+ <FileVersion major =" 1" minor =" 6" />
4
+ <Project >
5
+ <Option title =" Batalha (OBI 2018)" />
6
+ <Option pch_mode =" 2" />
7
+ <Option compiler =" gcc" />
8
+ <Build >
9
+ <Target title =" Debug" >
10
+ <Option output =" bin/Debug/Batalha (OBI 2018)" prefix_auto =" 1" extension_auto =" 1" />
11
+ <Option object_output =" obj/Debug/" />
12
+ <Option type =" 1" />
13
+ <Option compiler =" gcc" />
14
+ <Compiler >
15
+ <Add option =" -g" />
16
+ </Compiler >
17
+ </Target >
18
+ <Target title =" Release" >
19
+ <Option output =" bin/Release/Batalha (OBI 2018)" prefix_auto =" 1" extension_auto =" 1" />
20
+ <Option object_output =" obj/Release/" />
21
+ <Option type =" 1" />
22
+ <Option compiler =" gcc" />
23
+ <Compiler >
24
+ <Add option =" -O2" />
25
+ </Compiler >
26
+ <Linker >
27
+ <Add option =" -s" />
28
+ </Linker >
29
+ </Target >
30
+ </Build >
31
+ <Compiler >
32
+ <Add option =" -Wall" />
33
+ <Add option =" -fexceptions" />
34
+ </Compiler >
35
+ <Unit filename =" main.cpp" />
36
+ <Extensions >
37
+ <code_completion />
38
+ <envvars />
39
+ <debugger />
40
+ <lib_finder disable_auto =" 1" />
41
+ </Extensions >
42
+ </Project >
43
+ </CodeBlocks_project_file >
Original file line number Diff line number Diff line change
1
+ # depslib dependency file v1.0
2
+ 1582092382 source:c:\users\annel\desktop\competitive programming\neps solutions\batalha (obi 2018)\main.cpp
3
+ <iostream>
4
+
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+
3
+ using namespace std ;
4
+
5
+ int main ()
6
+ {
7
+ int a1, d1, a2, d2;
8
+ cin >> a1 >> d1 >> a2 >> d2;
9
+ if (d1 == a2 && d2 != a1) {
10
+ cout << 1 << endl;
11
+ } else if (d2 == a1 && d1 != a2) {
12
+ cout << 2 << endl;
13
+ } else {
14
+ cout << -1 << endl;
15
+ }
16
+ return 0 ;
17
+ }
You can’t perform that action at this time.
0 commit comments