結果

問題 No.305 鍵(2)
ユーザー mastersatoshimastersatoshi
提出日時 2017-06-29 08:17:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 651 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 10,836 KB
実行使用メモリ 24,608 KB
平均クエリ数 73.00
最終ジャッジ日時 2023-09-23 14:14:53
合計ジャッジ時間 1,832 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
24,564 KB
testcase_01 AC 41 ms
24,568 KB
testcase_02 AC 41 ms
24,304 KB
testcase_03 AC 43 ms
23,936 KB
testcase_04 AC 42 ms
24,572 KB
testcase_05 AC 41 ms
24,608 KB
testcase_06 RE -
testcase_07 AC 40 ms
24,132 KB
testcase_08 AC 43 ms
24,140 KB
testcase_09 AC 40 ms
24,524 KB
testcase_10 AC 41 ms
23,860 KB
testcase_11 AC 41 ms
24,020 KB
testcase_12 AC 42 ms
24,096 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
    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