結果

問題 No.682 Average
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-05-11 22:58:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 840 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-09-10 17:45:22
合計ジャッジ時間 1,188 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,792 KB
testcase_01 AC 16 ms
7,780 KB
testcase_02 AC 16 ms
7,800 KB
testcase_03 AC 16 ms
7,788 KB
testcase_04 AC 15 ms
7,772 KB
testcase_05 AC 15 ms
7,908 KB
testcase_06 AC 16 ms
7,784 KB
testcase_07 AC 16 ms
7,752 KB
testcase_08 AC 16 ms
7,712 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
7,876 KB
testcase_12 AC 16 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = list(map(int, input().split(' ')))
n = 0
int_num = [i for i in range(b)]
for i in range(a, b+1):
    if (a+i+b)/3 in int_num:
        n+=1
print(n)
0