結果
問題 | No.35 タイパー高橋 |
ユーザー | yoza |
提出日時 | 2014-10-08 00:28:05 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 20 ms / 5,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 1,258 ms |
コンパイル使用メモリ | 10,560 KB |
実行使用メモリ | 8,252 KB |
最終ジャッジ日時 | 2023-08-28 20:21:50 |
合計ジャッジ時間 | 1,689 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 19 ms
8,248 KB |
testcase_01 | AC | 20 ms
8,252 KB |
testcase_02 | AC | 20 ms
8,184 KB |
testcase_03 | AC | 20 ms
8,252 KB |
ソースコード
n = int(input()) ts_list = [] for i in range(n): t, s = input().split() t = int(t) ts_list.append([t, s]) rate = 1000 / 12 ok_count = 0 ng_count = 0 for t, s in ts_list: tmp_ok = int(t // rate) ok_count += min(tmp_ok, len(s)) ng_count += len(s) - min(tmp_ok, len(s)) print(ok_count, ng_count)