結果

問題 No.35 タイパー高橋
ユーザー TksiTksi
提出日時 2017-08-06 21:57:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 36 ms / 5,000 ms
コード長 261 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-20 04:04:09
合計ジャッジ時間 660 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math
sum,ok = 0,0
for i in range(int(input())):
    lst = input().split()
    sum += len(lst[1])
    able = math.floor(int(lst[0])*12/1000)
    if(able > len(lst[1])):
        ok += len(lst[1])
    else:
        ok += able
print(str(ok)+' '+str(sum-ok))
0