結果

問題 No.35 タイパー高橋
ユーザー Snark86Snark86
提出日時 2016-04-24 05:48:10
言語 Python2
(2.7.18)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 163 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 04:23:22
合計ジャッジ時間 541 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(raw_input())
sc = 0
mc = 0
for _ in range(n):
	t, s = raw_input().split()
	c = int(t)*12/1000
	if c > len(s):c=len(s)
	sc += c
	mc += len(s)-c
print sc,mc
0