Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e3ccb commit a60c74aCopy full SHA for a60c74a
cpp/sprint1_nonfinals/b.cpp
@@ -2,13 +2,16 @@
2
3
using namespace std;
4
5
-string CheckParity(int a, int b, int c) {
+bool CheckParity(int a, int b, int c) {
6
// Здесь реализация вашего решения
7
8
}
9
10
-void print(string result) {
11
- cout << result << endl;
+void print(bool result) {
+ if (result)
12
+ cout << "WIN" << endl;
13
+ else
14
+ cout << "FAIL" << endl;
15
16
17
int main() {
python/sprint1_nonfinals/b.py
@@ -1,6 +1,12 @@
1
-def check_parity(a: int, b: int, c: int) -> str:
+def check_parity(a: int, b: int, c: int) -> bool:
# Здесь реализация вашего решения
pass
+def print_result(result: bool) -> None:
+ if result:
+ print("WIN")
+ else:
+ print("FAIL")
+
a, b, c = map(int, input().strip().split())
-print(check_parity(a, b, c))
+print_result(check_parity(a, b, c))
0 commit comments