結果
問題 | No.305 鍵(2) |
ユーザー |
|
提出日時 | 2016-05-31 18:19:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 575 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,480 KB |
平均クエリ数 | 86.69 |
最終ジャッジ日時 | 2024-07-16 23:52:28 |
合計ジャッジ時間 | 1,970 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#!/usr/bin/env python3import syskey = [None] * 10class Done(Exception):passtry:for i in range(len(key)):best_n = -1correct_digit = Nonefor j in range(10):key[i] = jprint(''.join([str(c or '0') for c in key]))sys.stdout.flush()n, result = input().split()if result == 'unlocked':raise Donen = int(n)if best_n < n:best_n = ncorrect_digit = jkey[i] = correct_digitexcept Done:pass