結果

問題 No.682 Average
ユーザー kappybarkappybar
提出日時 2020-05-06 14:58:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 108 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 29,840 KB
最終ジャッジ日時 2023-09-11 01:55:21
合計ジャッジ時間 3,852 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
29,764 KB
testcase_01 AC 131 ms
29,692 KB
testcase_02 AC 132 ms
29,756 KB
testcase_03 AC 134 ms
29,776 KB
testcase_04 AC 132 ms
29,760 KB
testcase_05 AC 132 ms
29,840 KB
testcase_06 AC 132 ms
29,824 KB
testcase_07 AC 129 ms
29,724 KB
testcase_08 AC 128 ms
29,712 KB
testcase_09 AC 129 ms
29,692 KB
testcase_10 AC 130 ms
29,752 KB
testcase_11 AC 130 ms
29,760 KB
testcase_12 AC 129 ms
29,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
a,b=map(int,input().split())
c=np.arange(a,b+1)
print(np.sum(np.where((a+b+c)%3==0,1,0)))
0