結果

問題 No.35 タイパー高橋
ユーザー minezumuminezumu
提出日時 2018-07-10 08:42:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,464 KB
実行使用メモリ 7,904 KB
最終ジャッジ日時 2023-09-26 12:16:28
合計ジャッジ時間 783 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
correct = 0
incorrect = 0
for i in range(N) :
    T,S = map(str,input().split())
    T = int(T)
    capacity = (12*T) // 1000
    if capacity < len(S) :
        incorrect += len(S) - capacity
        correct += capacity
    else :
        correct += len(S)
print("{} {}".format(correct,incorrect))

0