結果
問題 | No.35 タイパー高橋 |
ユーザー | ktshun |
提出日時 | 2015-06-01 11:33:54 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 14 ms / 5,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 6,668 KB |
実行使用メモリ | 6,124 KB |
最終ジャッジ日時 | 2023-09-20 18:14:20 |
合計ジャッジ時間 | 655 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 14 ms
6,020 KB |
testcase_01 | AC | 14 ms
5,976 KB |
testcase_02 | AC | 14 ms
6,124 KB |
testcase_03 | AC | 14 ms
6,120 KB |
ソースコード
# -*- coding:utf-8 -*- if __name__ == "__main__": n = input() ans1 , ans2 = 0,0 for i in xrange(n): t, s = raw_input().split() t = int(t) cantype = 12 * t // 1000 if len(s) > cantype: ans1 += cantype ans2 += len(s) - cantype else: ans1 += len(s) print "%d %d" % (ans1,ans2)