結果

問題 No.35 タイパー高橋
ユーザー oz4point5oz4point5
提出日時 2019-03-30 18:36:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 353 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-27 17:50:22
合計ジャッジ時間 817 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding: utf-8 -*-

n = int(input())
t = [0] * n
s = [0] * n
for i in range(n):
    t[i],s[i] = input().split()
    t[i] = int(t[i])

can = 0
cannot = 0

for i in range(n):
    length = int(t[i] * 12 / 1000)
    if length > len(s[i]):
        can += len(s[i])
    else:
        can += length
        cannot += len(s[i]) - length

print(can,cannot)
0