結果

問題 No.1213 sio
ユーザー shotoyoo
提出日時 2020-08-30 17:05:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 81,976 KB
実行使用メモリ 53,564 KB
最終ジャッジ日時 2024-11-15 12:47:22
合計ジャッジ時間 2,437 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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