結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
Fullmoon85072
|
| 提出日時 | 2020-08-02 09:20:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 5,000 ms |
| コード長 | 565 bytes |
| コンパイル時間 | 595 ms |
| コンパイル使用メモリ | 82,184 KB |
| 実行使用メモリ | 62,884 KB |
| 最終ジャッジ日時 | 2024-07-18 07:00:45 |
| 合計ジャッジ時間 | 802 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
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))
Fullmoon85072