結果
問題 | No.305 鍵(2) |
ユーザー | nebukuro09 |
提出日時 | 2016-09-20 14:36:29 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 6,732 KB |
実行使用メモリ | 24,408 KB |
平均クエリ数 | 85.00 |
最終ジャッジ日時 | 2023-09-23 11:32:20 |
合計ジャッジ時間 | 3,220 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 39 ms
23,520 KB |
testcase_06 | AC | 37 ms
23,388 KB |
testcase_07 | AC | 38 ms
23,628 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
ソースコード
import sys def kagi(num): print num sys.stdout.flush() result = int(raw_input().split()[0]) if result == 10: exit() return result baseline = kagi('0000000000') ans = ['0' for i in xrange(10)] for i in xrange(1, 10): for j in xrange(10): k = ['0' for i in xrange(10)] k[j] = str(i) n = kagi(''.join(k)) if n > baseline: ans[j] = str(i) kagi(''.join(ans))