結果
問題 | No.35 タイパー高橋 |
ユーザー | Fullmoon85072 |
提出日時 | 2020-08-02 09:20:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 88 ms / 5,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 1,638 ms |
コンパイル使用メモリ | 86,828 KB |
実行使用メモリ | 75,456 KB |
最終ジャッジ日時 | 2023-09-25 08:33:15 |
合計ジャッジ時間 | 2,836 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 86 ms
75,456 KB |
testcase_01 | AC | 88 ms
75,116 KB |
testcase_02 | AC | 88 ms
75,188 KB |
testcase_03 | AC | 88 ms
75,452 KB |
ソースコード
N = int(input()) typing_list = list() for i in range(N): typing_list.append(input().split(" ")) success_count = 0 fail_count = 0 typing_num_for_one_msecond = 12 / 1000 for section in typing_list: msecond = int(section[0]) typing_str = section[1] max_typing_len = int(msecond * typing_num_for_one_msecond) if max_typing_len - len(typing_str) >= 0: success_count += len(typing_str) else: success_count += max_typing_len fail_count += len(typing_str) - max_typing_len print("{} {}".format(success_count, fail_count))