結果

問題 No.35 タイパー高橋
ユーザー kisaragi211kisaragi211
提出日時 2018-01-24 22:01:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 448 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,360 KB
最終ジャッジ日時 2023-08-27 02:19:24
合計ジャッジ時間 898 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,236 KB
testcase_01 AC 19 ms
8,360 KB
testcase_02 AC 19 ms
8,228 KB
testcase_03 AC 19 ms
8,164 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