結果

問題 No.35 タイパー高橋
ユーザー neko_the_shadowneko_the_shadow
提出日時 2017-01-15 18:35:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 7,860 KB
最終ジャッジ日時 2023-08-23 11:16:10
合計ジャッジ時間 674 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

if __name__ == '__main__':
    x = y = 0

    n = int(input())
    for _ in range(n):
        t, s = input().split()
        
        l = len(s)
        m = min(l, int(t) * 12 // 1000)
        x += m
        y += l - m
    
    print(x, y)
0