結果

問題 No.305 鍵(2)
ユーザー fmhrfmhr
提出日時 2015-11-27 23:12:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 529 bytes
コンパイル時間 566 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 25,140 KB
平均クエリ数 50.62
最終ジャッジ日時 2023-09-23 22:03:43
合計ジャッジ時間 1,828 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
24,456 KB
testcase_01 AC 41 ms
24,304 KB
testcase_02 AC 42 ms
24,464 KB
testcase_03 AC 44 ms
24,548 KB
testcase_04 AC 44 ms
24,440 KB
testcase_05 AC 46 ms
24,784 KB
testcase_06 AC 41 ms
24,428 KB
testcase_07 AC 42 ms
25,140 KB
testcase_08 AC 44 ms
24,824 KB
testcase_09 AC 42 ms
25,088 KB
testcase_10 AC 42 ms
24,712 KB
testcase_11 AC 42 ms
24,460 KB
testcase_12 AC 44 ms
24,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

import random
def main():
    # a = str(random.randint(0,9999999999)).zfill(10)
    a = '1234567890'
    print(a)
    score, s = input().split()
    if s == 'unlocked':
        return
    for i in range(10):
        for j in range(10):
            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

main()
0