結果

問題 No.682 Average
ユーザー souhei gunjisouhei gunji
提出日時 2018-12-15 18:09:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 11,640 KB
実行使用メモリ 9,916 KB
最終ジャッジ日時 2023-10-25 21:55:39
合計ジャッジ時間 1,193 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,916 KB
testcase_01 AC 27 ms
9,916 KB
testcase_02 AC 27 ms
9,916 KB
testcase_03 AC 27 ms
9,916 KB
testcase_04 AC 27 ms
9,916 KB
testcase_05 WA -
testcase_06 AC 27 ms
9,916 KB
testcase_07 WA -
testcase_08 AC 27 ms
9,916 KB
testcase_09 AC 26 ms
9,916 KB
testcase_10 AC 27 ms
9,916 KB
testcase_11 AC 26 ms
9,916 KB
testcase_12 AC 26 ms
9,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())
m = (a-b) % 3
if m==0:
    print((b-a)//3 + 1)
elif m==1:
    print((b-a)//3 - 1)
else:
    print((b-a)//3)

0