結果

問題 No.35 タイパー高橋
ユーザー 👑 colognecologne
提出日時 2022-01-23 17:03:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 307 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-08-19 22:25:49
合計ジャッジ時間 1,233 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,076 KB
testcase_01 AC 69 ms
71,240 KB
testcase_02 AC 74 ms
71,464 KB
testcase_03 AC 71 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

input = sys.stdin.readline


def main():
    N = int(input())
    a, b = 0, 0

    for i in range(N):
        T, S = input().split()
        t = 12*int(T)//1000
        pa = min(t, len(S))
        pb = len(S)-pa
        a, b = a+pa, b+pb

    print(a, b)


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