結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2016-06-03 11:18:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,608 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2024-07-16 23:54:55 |
合計ジャッジ時間 | 1,971 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
import sys pin = list('0000000000') print(''.join(pin)) sys.stdout.flush() match, locked = input().split() match = int(match) if locked == 'unlocked': exit() for i in range(10): for j in range(1, 10): pin[i] = str(j) print(''.join(pin)) sys.stdout.flush() m, result = input().split() if result == 'unlocked': exit() if match < int(m): match = int(m) break elif match > int(m): pin[i] = str(0) break else: pin[i] = str(0)