結果

問題 No.35 タイパー高橋
ユーザー turner18_jpturner18_jp
提出日時 2017-10-03 21:38:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 333 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-27 22:54:01
合計ジャッジ時間 655 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
li = []
count = 0
remaining = 0
for i in range(n): 
    li.append(list(input().split()))

for i in li:
    if int(int(i[0]) * 12 / 1000) >= len(i[1]):
        count += len(i[1])
    else:
        count += int(int(i[0]) * 12 / 1000)
        remaining += len(i[1]) - int(int(i[0]) * 12 / 1000)

print(count, remaining)
0