結果
問題 | No.438 Cwwプログラミング入門 |
ユーザー | nebukuro09 |
提出日時 | 2016-10-28 23:30:43 |
言語 | PyPy2 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 482 bytes |
コンパイル時間 | 1,788 ms |
コンパイル使用メモリ | 76,928 KB |
実行使用メモリ | 259,508 KB |
最終ジャッジ日時 | 2024-05-03 17:12:57 |
合計ジャッジ時間 | 18,753 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 128 ms
107,776 KB |
testcase_01 | AC | 135 ms
103,296 KB |
testcase_02 | AC | 186 ms
111,776 KB |
testcase_03 | AC | 133 ms
103,168 KB |
testcase_04 | AC | 256 ms
121,728 KB |
testcase_05 | AC | 545 ms
170,624 KB |
testcase_06 | AC | 202 ms
113,152 KB |
testcase_07 | AC | 133 ms
103,468 KB |
testcase_08 | AC | 546 ms
170,880 KB |
testcase_09 | AC | 417 ms
143,616 KB |
testcase_10 | AC | 163 ms
105,900 KB |
testcase_11 | AC | 161 ms
105,600 KB |
testcase_12 | AC | 187 ms
112,640 KB |
testcase_13 | AC | 111 ms
100,480 KB |
testcase_14 | AC | 552 ms
171,260 KB |
testcase_15 | AC | 161 ms
106,276 KB |
testcase_16 | AC | 515 ms
164,224 KB |
testcase_17 | AC | 253 ms
122,112 KB |
testcase_18 | AC | 191 ms
112,768 KB |
testcase_19 | AC | 357 ms
139,284 KB |
testcase_20 | AC | 619 ms
179,304 KB |
testcase_21 | WA | - |
testcase_22 | AC | 184 ms
111,232 KB |
testcase_23 | AC | 217 ms
116,096 KB |
testcase_24 | AC | 170 ms
108,672 KB |
testcase_25 | AC | 252 ms
121,984 KB |
testcase_26 | WA | - |
testcase_27 | AC | 213 ms
115,968 KB |
testcase_28 | AC | 79 ms
75,392 KB |
testcase_29 | AC | 75 ms
75,520 KB |
testcase_30 | AC | 154 ms
105,856 KB |
testcase_31 | WA | - |
testcase_32 | AC | 75 ms
75,264 KB |
testcase_33 | AC | 191 ms
110,848 KB |
testcase_34 | WA | - |
testcase_35 | AC | 75 ms
75,264 KB |
testcase_36 | AC | 75 ms
75,648 KB |
testcase_37 | AC | 144 ms
105,344 KB |
testcase_38 | AC | 146 ms
105,148 KB |
testcase_39 | WA | - |
testcase_40 | AC | 140 ms
104,320 KB |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | AC | 117 ms
100,736 KB |
testcase_44 | WA | - |
testcase_45 | AC | 76 ms
75,776 KB |
testcase_46 | AC | 134 ms
103,296 KB |
testcase_47 | WA | - |
testcase_48 | TLE | - |
testcase_49 | -- | - |
testcase_50 | -- | - |
testcase_51 | -- | - |
testcase_52 | -- | - |
testcase_53 | -- | - |
testcase_54 | -- | - |
testcase_55 | -- | - |
testcase_56 | -- | - |
testcase_57 | -- | - |
testcase_58 | -- | - |
testcase_59 | -- | - |
testcase_60 | -- | - |
testcase_61 | -- | - |
testcase_62 | -- | - |
testcase_63 | -- | - |
testcase_64 | -- | - |
testcase_65 | -- | - |
testcase_66 | -- | - |
testcase_67 | -- | - |
testcase_68 | -- | - |
testcase_69 | -- | - |
testcase_70 | -- | - |
testcase_71 | -- | - |
testcase_72 | -- | - |
testcase_73 | -- | - |
testcase_74 | -- | - |
testcase_75 | -- | - |
testcase_76 | -- | - |
testcase_77 | -- | - |
testcase_78 | -- | - |
testcase_79 | -- | - |
testcase_80 | -- | - |
testcase_81 | -- | - |
testcase_82 | -- | - |
testcase_83 | -- | - |
testcase_84 | -- | - |
testcase_85 | -- | - |
testcase_86 | -- | - |
testcase_87 | -- | - |
testcase_88 | -- | - |
testcase_89 | -- | - |
testcase_90 | -- | - |
testcase_91 | -- | - |
testcase_92 | -- | - |
testcase_93 | -- | - |
testcase_94 | -- | - |
testcase_95 | -- | - |
testcase_96 | -- | - |
testcase_97 | -- | - |
testcase_98 | -- | - |
testcase_99 | -- | - |
testcase_100 | -- | - |
ソースコード
x, y, z = map(int, raw_input().split()) visited = set() d = [(x, 'cC'), (y, 'wC'), (-x, 'cW'), (-y, 'wW')] stack = [(x, 'c'), (y, 'w')] while len(stack) > 0: num, code = stack.pop() #print num if num in visited or num < 0: continue if num == z: print code exit() visited.add(num) if len(code) >= 9999: continue for nn, nc in d: if nn >= 0: stack.append((num+nn, code+nc)) print 'mourennaihasimasenn'