結果
問題 | No.305 鍵(2) |
ユーザー | zombietan |
提出日時 | 2016-06-03 11:18:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 10,980 KB |
実行使用メモリ | 24,476 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2023-09-24 00:04:35 |
合計ジャッジ時間 | 1,634 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
24,260 KB |
testcase_01 | AC | 44 ms
23,760 KB |
testcase_02 | AC | 40 ms
24,236 KB |
testcase_03 | AC | 39 ms
24,144 KB |
testcase_04 | AC | 38 ms
23,856 KB |
testcase_05 | AC | 40 ms
24,056 KB |
testcase_06 | AC | 39 ms
24,180 KB |
testcase_07 | AC | 41 ms
24,476 KB |
testcase_08 | AC | 39 ms
24,064 KB |
testcase_09 | AC | 38 ms
24,008 KB |
testcase_10 | AC | 39 ms
23,868 KB |
testcase_11 | AC | 41 ms
24,156 KB |
testcase_12 | AC | 41 ms
24,384 KB |
ソースコード
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)