結果

問題 No.35 タイパー高橋
コンテスト
ユーザー S Y
提出日時 2024-10-19 12:53:27
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 538 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 662 ms
コンパイル使用メモリ 20,700 KB
実行使用メモリ 35,108 KB
最終ジャッジ日時 2026-05-05 16:50:36
合計ジャッジ時間 6,871 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import numpy

n = int(input())
ts_lst = [ list(input().split(' ')) for i in range(n) ]

correct_cnt = 0
wrong_cnt = 0

for ts in ts_lst:
    t = int(ts[0])
    s = ts[1]

    s_len = len(s)
    leng = len(s)

    isCompleted = False
    while leng > 0:
        if numpy.floor(12*t/1000) >= leng:
            correct_cnt += leng
            wrong_cnt += s_len - leng
            isCompleted = True
            break
        else:
            leng -= 1
    if not isCompleted:
        wrong_cnt += s_len

print(correct_cnt)
print(wrong_cnt)
0