結果

問題 No.146 試験監督(1)
ユーザー NoNo
提出日時 2017-05-13 20:22:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 316 ms / 1,000 ms
コード長 180 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2023-10-13 16:19:59
合計ジャッジ時間 1,976 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
ans = 0

for i in range(n):
    ss = input().split()
    c = int(ss[0])
    d = int(ss[1])
    ans += ((c + 1) // 2) * d
    ans = ans % 1000000007
    
print(ans)
0