結果

問題 No.682 Average
ユーザー konabe
提出日時 2018-05-11 22:54:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-28 08:56:40
合計ジャッジ時間 1,087 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = list(map(int, input().split()))
res = 0 if (A + B) % 3 == 0 else 3 - (A + B) % 3
start = A if res == A % 3 else A + abs(res - (A % 3))
end = B if res == B % 3 else B - abs(res - (0 if B % 3 == res else 3 + B % 3 - res))
print((end - start)//3 + 1)
0