結果

問題 No.35 タイパー高橋
ユーザー Kaito KoikeKaito Koike
提出日時 2018-03-28 15:28:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 377 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-09-07 19:24:37
合計ジャッジ時間 642 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

phase = int(input())
loss_string = 0
correct_string = 0

for i in range(phase):
    x = input().split(" ")
    time = int(x[0])
    str_len = len(x[1])
    max_string = int(12*time/1000)
    if max_string < str_len:
        loss_string += str_len - max_string
        correct_string += max_string
    else:
        correct_string += str_len

print(correct_string,loss_string)
0