結果

問題 No.305 鍵(2)
ユーザー steek79steek79
提出日時 2015-11-27 22:54:03
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 418 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 15,640 KB
平均クエリ数 0.85
最終ジャッジ日時 2023-09-23 22:03:21
合計ジャッジ時間 3,711 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
7,820 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import itertools

answerlike = ''
for i in xrange(10):
    print str(i) * 10
    sys.stdout.flush()
    res = raw_input().split()[0]
    if res == 10:
        exit()
    else:
        for _ in xrange(int(res)):
            answerlike += str(i)

for p in itertools.permutations(answerlike):
    print ''.join(p)
    sys.stdout.flush()
    res = raw_input().split()[1]
    if res == 'unlocked':
        break
0