結果

問題 No.35 タイパー高橋
ユーザー ThetaTheta
提出日時 2022-11-01 17:59:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 330 bytes
コンパイル時間 522 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2023-09-23 08:56:44
合計ジャッジ時間 844 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def main():
    succeed = 0
    failure = 0
    for _ in range(int(input())):
        T, S = input().split()
        T = int(T)
        current_succeed = 12*T//1000
        succeed += min(current_succeed, len(S))
        failure += max(len(S)-current_succeed, 0)

    print(succeed, failure)

if __name__ == "__main__":
    main()
0