結果
問題 | No.305 鍵(2) |
ユーザー |
|
提出日時 | 2016-11-02 10:02:53 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 425 bytes |
コンパイル時間 | 58 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 25,232 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2024-07-17 00:35:28 |
合計ジャッジ時間 | 1,338 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#yuki_305 import sys s='0000000000' print s sys.stdout.flush() num,stat=raw_input().split() if stat=='unlocked': sys,exit() for i in xrange(10): for j in xrange(10): if s[i]==str(j): continue print s[:i]+str(j)+s[i+1:] sys.stdout.flush() num2,stat=raw_input().split() if stat=='unlocked': sys.exit() if int(num)<int(num2): s=s[:i]+str(j)+s[i+1:] num=num2 break if int(num)>int(num2): break