Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a60c74a

Browse files
committed
fixes
1 parent 98e3ccb commit a60c74a

File tree

2 files changed

+14
-5
lines changed
  • cpp/sprint1_nonfinals
  • python/sprint1_nonfinals

2 files changed

+14
-5
lines changed

cpp/sprint1_nonfinals/b.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
using namespace std;
44

5-
string CheckParity(int a, int b, int c) {
5+
bool CheckParity(int a, int b, int c) {
66
// Здесь реализация вашего решения
77

88
}
99

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;
1215
}
1316

1417
int main() {

python/sprint1_nonfinals/b.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
def check_parity(a: int, b: int, c: int) -> str:
1+
def check_parity(a: int, b: int, c: int) -> bool:
22
# Здесь реализация вашего решения
33
pass
44

5+
def print_result(result: bool) -> None:
6+
if result:
7+
print("WIN")
8+
else:
9+
print("FAIL")
10+
511
a, b, c = map(int, input().strip().split())
6-
print(check_parity(a, b, c))
12+
print_result(check_parity(a, b, c))

0 commit comments

Comments
 (0)