結果

問題 No.35 タイパー高橋
ユーザー szkhtsszkhts
提出日時 2021-07-28 09:14:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,912 KB
最終ジャッジ日時 2023-10-11 03:47:32
合計ジャッジ時間 783 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

N = int(input())

can = 0
ng = 0

for i in range(N):
    t, s = input().split()
    t = int(t)

    can_tmp = (t * 12 // 1000)
    if can_tmp >= len(s):
        can += len(s)
    else:
        can += can_tmp
        ng += (len(s) - can_tmp)

print(can, ng)
0