結果
問題 | No.197 手品 |
ユーザー |
|
提出日時 | 2024-10-12 13:57:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,700 KB |
最終ジャッジ日時 | 2024-10-12 13:57:27 |
合計ジャッジ時間 | 2,920 ms |
ジャッジサーバーID (参考情報) |
judge / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | AC * 3 TLE * 1 -- * 39 |
ソースコード
sb = input()n = int(input())sa = input()ans = set([sb])while n:t = set([])for a in ans:t.add(a[0] + a[2] + a[1])t.add(a[1] + a[0] + a[2])ans = tn -= 1if sa in ans:print("FAILURE")else:print("SUCCES")