結果
問題 | No.146 試験監督(1) |
ユーザー |
![]() |
提出日時 | 2016-02-27 16:36:27 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 303 ms / 1,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 9,728 KB |
最終ジャッジ日時 | 2024-09-24 11:40:18 |
合計ジャッジ時間 | 1,986 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 |
ソースコード
# -*- coding: utf-8 -*-import mathN = input()cnt = 0mod = 1000000007for i in range(N):C, D = map(int, raw_input().split())C = ((C+1)//2) % modD %= modcnt += (C * D) % modprint cnt % mod