結果

問題 No.1213 sio
ユーザー shotoyooshotoyoo
提出日時 2020-08-30 17:05:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 82,852 KB
実行使用メモリ 54,680 KB
最終ジャッジ日時 2024-04-27 11:18:25
合計ジャッジ時間 2,960 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,132 KB
testcase_01 AC 40 ms
52,416 KB
testcase_02 AC 40 ms
52,952 KB
testcase_03 AC 38 ms
53,356 KB
testcase_04 AC 39 ms
51,996 KB
testcase_05 AC 41 ms
53,636 KB
testcase_06 AC 39 ms
52,000 KB
testcase_07 AC 42 ms
52,492 KB
testcase_08 AC 39 ms
52,540 KB
testcase_09 AC 38 ms
52,700 KB
testcase_10 AC 38 ms
53,352 KB
testcase_11 AC 38 ms
52,824 KB
testcase_12 AC 38 ms
52,732 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 39 ms
51,940 KB
testcase_16 AC 38 ms
52,928 KB
testcase_17 AC 38 ms
52,068 KB
testcase_18 AC 39 ms
52,068 KB
testcase_19 AC 37 ms
53,164 KB
testcase_20 AC 41 ms
52,580 KB
testcase_21 AC 39 ms
53,176 KB
testcase_22 AC 39 ms
52,564 KB
testcase_23 AC 39 ms
51,880 KB
testcase_24 AC 39 ms
53,012 KB
testcase_25 AC 38 ms
52,064 KB
testcase_26 AC 38 ms
52,700 KB
testcase_27 AC 38 ms
53,064 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


# inputna
n,m = list(map(int, input().split()))
if n%2==0 and m%2==0:
    ans = 0
elif n%2==0:
    ans = n//4
elif m%2==0:
    ans = m//4
else:
    ans = n//4 + m//4
print(ans)
0