結果

問題 No.35 タイパー高橋
ユーザー ssmkzkssmkzk
提出日時 2018-05-14 17:34:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 309 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-10 20:40:26
合計ジャッジ時間 855 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())
OKcount = 0
NGcount = 0

for i in range(N):
    t,s= input().split()
    t = int(t)
    s = str(s)
    can_write = int(t * 12 / 1000)
    if can_write < len(s):
        NGcount += len(s) - can_write
        OKcount += can_write
    else:
        OKcount += len(s)
    
print (OKcount,NGcount)
0