結果

問題 No.305 鍵(2)
ユーザー fmhrfmhr
提出日時 2015-11-27 23:09:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 490 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 25,040 KB
平均クエリ数 50.69
最終ジャッジ日時 2023-09-23 06:47:22
合計ジャッジ時間 1,838 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
24,900 KB
testcase_01 RE -
testcase_02 AC 45 ms
25,040 KB
testcase_03 AC 45 ms
25,008 KB
testcase_04 AC 46 ms
25,036 KB
testcase_05 AC 50 ms
24,780 KB
testcase_06 AC 43 ms
24,436 KB
testcase_07 AC 44 ms
24,544 KB
testcase_08 AC 46 ms
24,560 KB
testcase_09 AC 45 ms
25,040 KB
testcase_10 AC 44 ms
24,728 KB
testcase_11 AC 45 ms
24,644 KB
testcase_12 AC 45 ms
25,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

import random
def main():
    # a = str(random.randint(0,9999999999)).zfill(10)
    a = '1234567890'
    print(a)
    score, _ = input().split()
    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