結果

問題 No.35 タイパー高橋
ユーザー pro_kunipro_kuni
提出日時 2018-06-20 00:11:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 410 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,300 KB
最終ジャッジ日時 2023-09-13 07:16:18
合計ジャッジ時間 772 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

if __name__ == '__main__':
    n = int(input())
    a = []
    for i in range(n):
        pair = input().split()
        pair[0] = int(pair[0])
        a.append(pair)

    o = 0
    m = 0
    for p in a:
        t = p[0]
        s = p[1]
        to = 12 * t // 1000
        if len(s) > to:
            o += to
            m += len(s) - to
        else:
            o += len(s)
    print(str(o) + " " + str(m))
0