結果

問題 No.35 タイパー高橋
ユーザー OhnumaOhnuma
提出日時 2020-04-08 18:23:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,868 KB
最終ジャッジ日時 2023-09-26 06:59:36
合計ジャッジ時間 802 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
x,y = 0,0
for _ in range(n):
    t,s = input().split()
    t = int(t)
    k = 1000*(len(s)/12)
    if k<=t:
        x += len(s)
    else:
        x += int(12*t/1000)
        y += len(s) - int(12*t/1000)
print(x, y)
0