結果

問題 No.35 タイパー高橋
ユーザー tabataba
提出日時 2016-04-13 07:27:35
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,784 KB
最終ジャッジ日時 2024-04-15 00:36:36
合計ジャッジ時間 478 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

l=lambda:map(int,raw_input().split())
n=l()[0]
ts=[raw_input().split()for _ in[0]*n]
p=f=0
for x in ts:
	t=int(x[0])*12/1000
	p+=min(t,len(x[1]))
	f+=max(0,len(x[1])-t)
print p,f
0