結果

問題 No.146 試験監督(1)
ユーザー gorugo30gorugo30
提出日時 2021-02-23 17:03:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 152 bytes
コンパイル時間 940 ms
コンパイル使用メモリ 81,816 KB
実行使用メモリ 75,700 KB
最終ジャッジ日時 2023-10-23 18:28:05
合計ジャッジ時間 2,335 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

MOD = 10 ** 9 + 7
N = int(input())
ans = 0
for i in range(N):
    C, D = map(int, input().split())
    ans = (ans + D * ((C + 1) // 2)) % MOD
print(ans)
0