結果
問題 |
No.305 鍵(2)
|
ユーザー |
![]() |
提出日時 | 2015-11-27 22:54:03 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 53 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 24,848 KB |
平均クエリ数 | 0.85 |
最終ジャッジ日時 | 2024-07-16 21:49:25 |
合計ジャッジ時間 | 3,656 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 11 |
ソースコード
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