結果

問題 No.35 タイパー高橋
ユーザー a_tena_ten
提出日時 2016-03-25 21:15:50
言語 Python2
(2.7.18)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 222 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-09 23:53:55
合計ジャッジ時間 854 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#coding:utf-8

N=input()
n=[raw_input().split() for i in range(N)]

cnt_y=0
cnt_n=0
for i in n:
	res=12*int(i[0])//1000
	if res < len(i[1]):
		cnt_y+=res
		cnt_n+=len(i[1])-res
	else:
		cnt_y+=len(i[1])
	
print cnt_y,cnt_n
0