結果

問題 No.146 試験監督(1)
ユーザー warashiwarashi
提出日時 2015-02-09 01:06:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 333 ms / 1,000 ms
コード長 193 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-09-05 15:19:24
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 333 ms
7,828 KB
testcase_01 AC 327 ms
7,876 KB
testcase_02 AC 329 ms
7,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

N = int(input())
num = 0
mod = ((10 ** 9) + 7)
for i in range(N):
    C, D = [int(x) for x in input().split()]
    num = (num + (C + 1) // 2 * D % mod) % mod
print(num)
0