結果

問題 No.146 試験監督(1)
ユーザー ebicochinealebicochineal
提出日時 2016-06-05 22:33:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 383 ms / 1,000 ms
コード長 130 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-04-17 05:04:56
合計ジャッジ時間 3,257 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a = 0
for i in range(int(input())):
    c, d = map(int, input().split())
    a += (c // 2 + c % 2) * d
print(a % (pow(10, 9) + 7))
0