結果

問題 No.35 タイパー高橋
ユーザー y_nakamura_CC2y_nakamura_CC2
提出日時 2018-01-01 21:26:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 7,780 KB
最終ジャッジ日時 2023-08-24 15:44:18
合計ジャッジ時間 1,147 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())

count = 0
miss = 0

for i in range(N):
    T, S = input().split()

    typ = 12*int(T) // 1000
    words = len(S)

    if (typ - words) < 0:
        miss -= typ - words
        count += typ
        
    else:
        miss += 0
        count += words

print(int(count), int(miss))
0