結果

問題 No.146 試験監督(1)
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-15 19:09:01
言語 Python2
(2.7.18)
結果
AC  
実行時間 313 ms / 1,000 ms
コード長 168 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 6,768 KB
実行使用メモリ 6,004 KB
最終ジャッジ日時 2023-09-25 12:10:33
合計ジャッジ時間 1,938 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(raw_input())
countSum = 0
for i in xrange(N):
	C,D = map(long,raw_input().split())
	countSum += ((C + 1) / 2) * D 
	countSum %= (1000000000L + 7)
print countSum
0