結果

問題 No.146 試験監督(1)
ユーザー togatogatogatoga
提出日時 2015-09-02 23:45:00
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 6,648 KB
実行使用メモリ 9,256 KB
最終ジャッジ日時 2023-09-26 02:28:25
合計ジャッジ時間 1,972 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math
mod = 10 ** 9 + 7
print mod
N = input()
res = 0
for i in range(N):
    C,D = map(int, raw_input().split())
    a = int(math.ceil(C / 2.0)) % mod
    b = D % mod
    res += a * b
    res %= mod
print res
0