結果

問題 No.146 試験監督(1)
ユーザー akitsugu777akitsugu777
提出日時 2019-07-05 13:03:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 329 ms / 1,000 ms
コード長 123 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 11,720 KB
実行使用メモリ 10,076 KB
最終ジャッジ日時 2023-10-21 13:24:17
合計ジャッジ時間 2,179 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 328 ms
10,076 KB
testcase_01 AC 329 ms
10,076 KB
testcase_02 AC 328 ms
10,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

x = 0
for _ in range(n):
    c, d = map(int, input().split())
    x += (c+1)//2 * d

print(x % (10**9+7))
0