結果

問題 No.146 試験監督(1)
ユーザー Gmorning084Gmorning084
提出日時 2017-05-29 07:49:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 11,828 KB
実行使用メモリ 10,148 KB
最終ジャッジ日時 2023-10-21 16:45:38
合計ジャッジ時間 2,121 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
import math
ans = 0
for i in range(n):
    c,d = map(int,input().split(" "))
    ans = ans + (math.ceil(c/2)*d)%(10**9+7)
print(ans%(10**9+7))
0