結果

問題 No.305 鍵(2)
ユーザー fmhrfmhr
提出日時 2015-11-28 00:52:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 580 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 10,952 KB
実行使用メモリ 23,928 KB
平均クエリ数 44.08
最終ジャッジ日時 2023-09-23 22:07:31
合計ジャッジ時間 1,651 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
23,928 KB
testcase_01 AC 44 ms
23,464 KB
testcase_02 AC 39 ms
23,520 KB
testcase_03 AC 42 ms
23,484 KB
testcase_04 AC 42 ms
23,460 KB
testcase_05 AC 44 ms
23,528 KB
testcase_06 AC 41 ms
23,340 KB
testcase_07 AC 44 ms
23,492 KB
testcase_08 AC 41 ms
23,496 KB
testcase_09 AC 41 ms
23,588 KB
testcase_10 AC 41 ms
23,712 KB
testcase_11 AC 39 ms
23,740 KB
testcase_12 AC 40 ms
23,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

def main():
    a = '0000000000'
    print(a)
    score, s = input().split()
    if s == 'unlocked':
        return
    for i in range(10):
        for j in range(10):
            if a[i] == str(j):
                continue
            print(a[:i]+str(j)+a[i+1:])
            score2, s = input().split()
            if s == 'unlocked':
                return
            if int(score) < int(score2):
                a = a[:i]+str(j)+a[i+1:]
                score = score2
                break
            if int(score) > int(score2):
                break

main()
0