結果

問題 No.35 タイパー高橋
ユーザー MinixMinix
提出日時 2021-08-03 23:56:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 146 bytes
コンパイル時間 421 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 7,904 KB
最終ジャッジ日時 2023-10-14 21:11:44
合計ジャッジ時間 996 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n=int(input())
a,b=0,0
for _ in range(n):
    T,s=input().split();t=int(T)
    u=int(12*t/1000)
    a+=min(u,len(s));b+=max(len(s)-u,0)
print(a,b)
0