結果

問題 No.35 タイパー高橋
ユーザー tnodinotnodino
提出日時 2022-02-15 06:33:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2023-09-11 16:53:59
合計ジャッジ時間 829 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
OK = 0
NG = 0
for _ in range(N):
    T,S = input().split()
    T = int(T)
    X = int(12 * T / 1000)
    OK += min(X, len(S))
    NG += max(0, len(S) - X)
print(OK, NG)
0