結果

問題 No.146 試験監督(1)
ユーザー convexineqconvexineq
提出日時 2020-12-11 04:19:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 137 bytes
コンパイル時間 975 ms
コンパイル使用メモリ 81,588 KB
実行使用メモリ 75,640 KB
最終ジャッジ日時 2023-10-20 01:16:05
合計ジャッジ時間 1,398 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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