結果

問題 No.146 試験監督(1)
ユーザー NoNo
提出日時 2017-05-13 20:17:33
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-10-13 16:19:55
合計ジャッジ時間 2,023 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import math
n = int(input())
ans = 0

for i in range(n):
    ss = input().split()
    c = int(ss[0])
    d = int(ss[1])
    ans += math.floor((c + 1) / 2) * d

ans = ans % 1000000007
print(ans)
0