結果

問題 No.146 試験監督(1)
ユーザー first_vilfirst_vil
提出日時 2020-07-28 11:59:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 337 ms / 1,000 ms
コード長 148 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 7,812 KB
最終ジャッジ日時 2023-09-11 06:27:17
合計ジャッジ時間 2,834 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

mod=10**9+7
n=int(input())
ans=0
for _ in range(n):
    c,d=map(int,input().split())
    ans+=(c+1>>1)%mod*d%mod
    if mod<=ans:ans-=mod
print(ans)
0