結果

問題 No.35 タイパー高橋
コンテスト
ユーザー Fullmoon85072
提出日時 2020-08-02 09:20:02
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 565 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 132 ms
コンパイル使用メモリ 85,516 KB
実行使用メモリ 147,444 KB
最終ジャッジ日時 2026-04-01 23:13:30
合計ジャッジ時間 1,055 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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))
0