結果

問題 No.35 タイパー高橋
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-05-17 09:43:35
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 225 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 6,716 KB
実行使用メモリ 6,004 KB
最終ジャッジ日時 2023-09-20 09:21:08
合計ジャッジ時間 633 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,004 KB
testcase_01 AC 16 ms
5,952 KB
testcase_02 AC 16 ms
5,884 KB
testcase_03 AC 15 ms
5,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
func = lambda x, y: (int(x), len(y))

N = int(raw_input())
a, b = 0, 0
for _ in xrange(N):
    T, S = func(*raw_input().split())
    can = 12 * T / 1000
    a += min(can, S)
    b += max(0, S-can)
print a, b
0