結果

問題 No.35 タイパー高橋
ユーザー hiro1729hiro1729
提出日時 2023-08-28 06:59:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 10,488 KB
実行使用メモリ 7,820 KB
最終ジャッジ日時 2023-08-28 07:00:13
合計ジャッジ時間 853 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

ok = 0
ng = 0
for _ in range(int(input())):
	t, s = input().split()
	t = int(t)
	l = len(s)
	c = 12 * t // 1000
	if l <= c:
		ok += l
	else:
		ok += c
		ng += l - c
print(ok, ng)
0