結果

問題 No.146 試験監督(1)
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-15 19:03:45
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 6,200 KB
最終ジャッジ日時 2023-09-25 12:10:26
合計ジャッジ時間 1,981 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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