結果

問題 No.305 鍵(2)
ユーザー mastersatoshimastersatoshi
提出日時 2017-06-29 08:19:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 688 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 10,924 KB
実行使用メモリ 24,664 KB
平均クエリ数 72.92
最終ジャッジ日時 2023-09-24 01:21:23
合計ジャッジ時間 1,985 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
24,356 KB
testcase_01 AC 41 ms
24,664 KB
testcase_02 AC 38 ms
24,096 KB
testcase_03 AC 37 ms
24,300 KB
testcase_04 AC 36 ms
23,888 KB
testcase_05 AC 37 ms
23,848 KB
testcase_06 AC 33 ms
24,316 KB
testcase_07 AC 37 ms
24,548 KB
testcase_08 AC 36 ms
24,044 KB
testcase_09 AC 39 ms
24,060 KB
testcase_10 AC 38 ms
24,468 KB
testcase_11 AC 36 ms
24,176 KB
testcase_12 AC 38 ms
24,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#import pdb; pdb.set_trace()
import sys
import copy

def main():
    a = ["0","0","0","0","0","0","0","0","0","0"]
    num = ["0","1","2","3","4","5","6","7","8","9"]
    f = ["" for i in range(10)]
    print ("".join(a))
    (x, z) = input().split()
    now = x
    if x == "10":
        sys.exit()
    for i in range(1, 10):
        
        for j in range(10):
            tmpa = copy.deepcopy(a)
            tmpa[j] = num[i]
            print ("".join(tmpa))
            (x, z) = input().split()
            
            if x > now:
                a[j] = num[i]
                now = x
            elif x == "10":
                sys.exit()
    
if __name__ == '__main__':
    main()
0