結果

問題 No.35 タイパー高橋
ユーザー lloyzlloyz
提出日時 2022-03-10 20:50:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 202 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 7,864 KB
最終ジャッジ日時 2023-10-12 23:25:59
合計ジャッジ時間 640 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
ANS = [0, 0]
for _ in range(n):
    t, s = input().split()
    t = int(t)
    m = len(s)
    maxs = 12 * t // 1000
    ANS[0] += min(maxs, m)
    ANS[1] += max(0, m - maxs)
print(*ANS)
0