結果
| 問題 | 
                            No.197 手品
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-08-03 10:19:55 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 316 bytes | 
| コンパイル時間 | 71 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-05 08:33:12 | 
| 合計ジャッジ時間 | 2,439 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 42 WA * 1 | 
ソースコード
S_before = input()
N = int(input())
S_after = input()
if S_before.count('o') != S_after.count('o'):
    print('SUCCESS')
    exit()
if N == 1 and (S_before, S_after) in [('oxx', 'xxo'), ('xox', 'xox'), ('xxo', 'oxx'), ('xoo', 'oox'), ('oxo', 'oxo'), ('oox', 'xoo')]:
    print('SUCCESS')
else:
    print('FAILURE')