File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
using namespace std ;
4
4
5
- string CheckParity (int a, int b, int c) {
5
+ bool CheckParity (int a, int b, int c) {
6
6
// Здесь реализация вашего решения
7
7
8
8
}
9
9
10
- void print (string result) {
11
- cout << result << endl;
10
+ void print (bool result) {
11
+ if (result)
12
+ cout << " WIN" << endl;
13
+ else
14
+ cout << " FAIL" << endl;
12
15
}
13
16
14
17
int main () {
Original file line number Diff line number Diff line change 1
- def check_parity (a : int , b : int , c : int ) -> str :
1
+ def check_parity (a : int , b : int , c : int ) -> bool :
2
2
# Здесь реализация вашего решения
3
3
pass
4
4
5
+ def print_result (result : bool ) -> None :
6
+ if result :
7
+ print ("WIN" )
8
+ else :
9
+ print ("FAIL" )
10
+
5
11
a , b , c = map (int , input ().strip ().split ())
6
- print (check_parity (a , b , c ))
12
+ print_result (check_parity (a , b , c ))
You can’t perform that action at this time.
0 commit comments