結果

問題 No.146 試験監督(1)
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-15 19:02:29
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 6,680 KB
実行使用メモリ 6,096 KB
最終ジャッジ日時 2023-09-25 12:10:21
合計ジャッジ時間 1,969 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)
print countSum
0