結果

問題 No.146 試験監督(1)
ユーザー JunOnumaJunOnuma
提出日時 2017-06-06 11:51:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 293 ms / 1,000 ms
コード長 135 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 7,116 KB
実行使用メモリ 9,412 KB
最終ジャッジ日時 2023-10-23 17:48:32
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(raw_input())
cnt = 0
for _ in range(n):
    c,d = map(int, raw_input().split())
    cnt += (c+1)/2 * d
print cnt % (10**9 + 7)
0