結果
| 問題 | 
                            No.197 手品
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-05-26 13:43:07 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 272 bytes | 
| コンパイル時間 | 171 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-13 02:40:42 | 
| 合計ジャッジ時間 | 2,865 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 40 WA * 3 | 
ソースコード
Sb = input()
N = int(input())
Sa = input()
is_success = lambda b: 'SUCCESS' if b else 'FAILURE'
if N == 0:
    print(is_success(Sb != Sa))
elif N >= 2:
    print(is_success(False))
else:
    print(is_success(Sb[1] + Sb[0] + Sb[2] != Sa and Sb[0] + Sb[2] + Sb[1] != Sa))