結果

問題 No.146 試験監督(1)
ユーザー yumechi
提出日時 2015-08-15 16:54:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 321 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-18 09:43:31
合計ジャッジ時間 2,098 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

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