結果

問題 No.35 タイパー高橋
ユーザー na-shna-sh
提出日時 2020-07-15 11:02:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 7,836 KB
最終ジャッジ日時 2023-08-13 16:19:27
合計ジャッジ時間 654 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())

X = 12 / 1000

ans = [0, 0]
for _ in range(N):
    T, S = input().split()
    T = int(T)
    s = len(S)

    x = int(T * 12 / 1000)
    if s <= x:
        ans[0] += s
    else:
        ans[0] += x
        ans[1] += s - x
print(*ans)
0