結果

問題 No.146 試験監督(1)
ユーザー yomo3yomo3
提出日時 2020-02-19 03:26:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 482 ms / 1,000 ms
コード長 182 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 30,336 KB
最終ジャッジ日時 2024-04-16 05:11:20
合計ジャッジ時間 2,632 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

ans = 0
for cd in CD:
    ans = (ans + (cd[0] + 1) // 2 % M * (cd[1] % M) % M) % M
print(ans)
0