結果

問題 No.146 試験監督(1)
ユーザー ytftytft
提出日時 2021-03-16 15:36:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 124 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 82,104 KB
実行使用メモリ 76,516 KB
最終ジャッジ日時 2024-04-25 14:37:15
合計ジャッジ時間 1,244 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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