結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-01 11:33:54 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 297 bytes |
| コンパイル時間 | 32 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 13:09:08 |
| 合計ジャッジ時間 | 447 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
# -*- 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)