結果

問題 No.35 タイパー高橋
ユーザー kokoa1046kokoa1046
提出日時 2018-01-31 11:26:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 448 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,316 KB
最終ジャッジ日時 2023-08-28 17:28:47
合計ジャッジ時間 546 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def main():
    N = int(input())
    
    ts_list = []
    
    for i in range(N):
        t, s = input().split()
        t = int(t)
        ts_list.append([t,s])
        
    rate = 1000 / 12
    o_count = 0
    n_count = 0
    for t, s in ts_list:
        tmp_ok = int(t // rate)
        o_count += min(tmp_ok, len(s))
        n_count += len(s) - min(tmp_ok, len(s))
        
    print(o_count, n_count)
    
if __name__ == '__main__':
    main()
0