結果

問題 No.146 試験監督(1)
ユーザー yomo3yomo3
提出日時 2020-02-19 03:27:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 188 ms / 1,000 ms
コード長 182 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 85,504 KB
最終ジャッジ日時 2024-04-16 05:16:35
合計ジャッジ時間 1,687 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 188 ms
85,504 KB
testcase_01 AC 186 ms
85,376 KB
testcase_02 AC 187 ms
85,376 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