結果

問題 No.146 試験監督(1)
ユーザー RK PythonRK Python
提出日時 2020-06-03 20:58:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 326 ms / 1,000 ms
コード長 139 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 7,916 KB
最終ジャッジ日時 2023-08-17 03:04:05
合計ジャッジ時間 2,720 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

MOD = 10**9 + 7
N = int(input())
t = 0
for _ in range(N):
    c,d = map(int, input().split())
    t += ((c+1)//2) * d
    t %= MOD
print(t)
0