結果

問題 No.146 試験監督(1)
ユーザー HIROPON87069639HIROPON87069639
提出日時 2016-02-27 16:36:27
言語 Python2
(2.7.18)
結果
AC  
実行時間 306 ms / 1,000 ms
コード長 212 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 7,128 KB
実行使用メモリ 9,708 KB
最終ジャッジ日時 2023-10-24 18:35:17
合計ジャッジ時間 1,879 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 306 ms
9,708 KB
testcase_01 AC 305 ms
9,708 KB
testcase_02 AC 303 ms
9,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import math
N = input()
cnt = 0
mod = 1000000007
for i in range(N):
    C, D = map(int, raw_input().split())
    C = ((C+1)//2) % mod
    D %= mod
    cnt += (C * D) % mod
print cnt % mod
0