結果
問題 | No.305 鍵(2) |
ユーザー | mastersatoshi |
提出日時 | 2017-06-29 08:15:01 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 675 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 10,816 KB |
実行使用メモリ | 24,580 KB |
平均クエリ数 | 79.46 |
最終ジャッジ日時 | 2023-09-23 14:14:59 |
合計ジャッジ時間 | 1,886 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 45 ms
24,308 KB |
testcase_01 | AC | 48 ms
24,420 KB |
testcase_02 | AC | 47 ms
24,504 KB |
testcase_03 | AC | 47 ms
24,424 KB |
testcase_04 | AC | 47 ms
24,076 KB |
testcase_05 | AC | 48 ms
24,196 KB |
testcase_06 | RE | - |
testcase_07 | AC | 47 ms
23,960 KB |
testcase_08 | AC | 47 ms
24,340 KB |
testcase_09 | AC | 48 ms
23,976 KB |
testcase_10 | AC | 47 ms
24,208 KB |
testcase_11 | AC | 47 ms
23,912 KB |
testcase_12 | AC | 47 ms
23,888 KB |
ソースコード
#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() 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 elif x == "10": sys.exit() if __name__ == '__main__': main()