結果

問題 No.305 鍵(2)
ユーザー mastersatoshimastersatoshi
提出日時 2017-06-29 08:13:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 665 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,860 KB
実行使用メモリ 24,624 KB
平均クエリ数 80.15
最終ジャッジ日時 2023-09-23 14:14:51
合計ジャッジ時間 3,194 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 44 ms
24,012 KB
testcase_06 AC 42 ms
23,948 KB
testcase_07 AC 45 ms
23,892 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

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)]
    now = 0
    for i in range(1, 10):
        print ("".join(a))
        (x, z) = input().split()
        if x == "10":
            sys.exit()
        now = x
        
        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
    
if __name__ == '__main__':
    main()
0