結果

問題 No.35 タイパー高橋
ユーザー konabekonabe
提出日時 2017-12-09 18:39:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 281 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 10,492 KB
実行使用メモリ 8,392 KB
最終ジャッジ日時 2023-08-20 05:17:53
合計ジャッジ時間 750 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
TS = [list(input().split()) for n in range(N)]
a, b= 0, 0
for ts in TS:
    str_num = len(ts[1])
    act_touch = (12 * int(ts[0]))//1000
    if act_touch >= str_num:
        a += str_num
    else:
        a += act_touch
        b += str_num - act_touch
print(a, b)
0