結果
問題 | No.305 鍵(2) |
ユーザー | roiti46 |
提出日時 | 2015-11-27 22:47:01 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 497 bytes |
コンパイル時間 | 773 ms |
コンパイル使用メモリ | 6,636 KB |
実行使用メモリ | 24,348 KB |
平均クエリ数 | 80.85 |
最終ジャッジ日時 | 2023-09-23 22:00:43 |
合計ジャッジ時間 | 2,440 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 48 ms
23,616 KB |
testcase_01 | AC | 46 ms
23,628 KB |
testcase_02 | AC | 46 ms
24,252 KB |
testcase_03 | AC | 46 ms
23,504 KB |
testcase_04 | AC | 46 ms
23,388 KB |
testcase_05 | AC | 44 ms
23,400 KB |
testcase_06 | AC | 42 ms
23,640 KB |
testcase_07 | AC | 46 ms
23,544 KB |
testcase_08 | AC | 48 ms
24,348 KB |
testcase_09 | AC | 45 ms
24,036 KB |
testcase_10 | AC | 47 ms
23,688 KB |
testcase_11 | AC | 49 ms
24,240 KB |
testcase_12 | AC | 47 ms
24,276 KB |
ソースコード
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll ans = "" for i in xrange(10): mx, k = 0, -1 for j in xrange(10): tmp = "0" * (10 - i - 1) + str(j) + ans print tmp sys.stdout.flush() hit, res = raw_input().split() if res == "unlocked": exit() hit = int(hit) if hit > mx: mx = hit k = j ans = str(k) + ans print ans res = raw_input()