結果

問題 No.892 タピオカ
ユーザー nuekodorynuekodory
提出日時 2019-09-27 21:27:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 268 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 11,860 KB
実行使用メモリ 10,096 KB
最終ジャッジ日時 2023-10-25 01:43:58
合計ジャッジ時間 986 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,096 KB
testcase_01 AC 30 ms
10,096 KB
testcase_02 AC 30 ms
10,096 KB
testcase_03 AC 28 ms
10,096 KB
testcase_04 AC 28 ms
10,096 KB
testcase_05 AC 28 ms
10,096 KB
testcase_06 AC 29 ms
10,096 KB
testcase_07 AC 29 ms
10,096 KB
testcase_08 AC 29 ms
10,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_odd(num):
    if num % 2 == 0:
        return 0
    else:
        return 1


num1, pow1, num2, pow2, num3, pow3 = map(int, input().split(' '))

ans = sum([is_odd(x) for x in (num1, num2, num3)]) % 2 == 0

if ans:
    print(":-)")
else:
    print(":-(")
exit(0)
0