結果

問題 No.146 試験監督(1)
ユーザー yomo3yomo3
提出日時 2020-02-19 03:31:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 448 ms / 1,000 ms
コード長 147 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 30,592 KB
最終ジャッジ日時 2024-04-16 05:28:27
合計ジャッジ時間 2,518 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

M = 10**9 + 7
N = int(input())
CD = [list(map(int, input().split())) for _ in range(N)]

ans = sum((c + 1) // 2 * d for c, d in CD) % M

print(ans)
0