結果

問題 No.146 試験監督(1)
ユーザー ktshun
提出日時 2015-05-29 12:20:08
言語 Python2
(2.7.18)
結果
AC  
実行時間 278 ms / 1,000 ms
コード長 189 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 6,940 KB
最終ジャッジ日時 2024-07-06 10:40:00
合計ジャッジ時間 1,620 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import math

if __name__ == "__main__":
	n = input()
	ans = 0
	for i in xrange(n):
		c,d = map(int,raw_input().split())
		ans += (c+1) / 2 * d
	print ans % 1000000007
0