結果

問題 No.35 タイパー高橋
ユーザー matriematrie
提出日時 2020-11-25 09:54:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 217 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-10-01 01:43:40
合計ジャッジ時間 744 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

N = int(input())
s = 0 #成功
f = 0 #失敗
for i in range(N):
	l = input().split()
	t = int(l[0])*12//1000 #打てる文字数
	w = len(l[1])          #課題の文字数
	s += min(t,w)
	if t<w: f += w-t
print(s, f)
0