結果
| 問題 | 
                            No.197 手品
                             | 
                    
| コンテスト | |
| ユーザー | 
                             _matumo_
                         | 
                    
| 提出日時 | 2019-07-22 18:59:08 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 317 bytes | 
| コンパイル時間 | 156 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-23 18:39:01 | 
| 合計ジャッジ時間 | 2,731 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 36 WA * 7 | 
ソースコード
def chk(sa,sb,N):
    if sa==sb and N!=1:                 return 1
    if sa==sb and sa[0]!=sa[1] and sa[1]!=sa[2]: return 0
    if sa.count('o')!=sb.count('o'):    return 0
    if sa[1]==sb[1] and N<2:            return 0
    return 1
sa=input()
N = int(input())
sb=input()
print(["SUCCESS","FAILURE"][chk(sa,sb,N)])
            
            
            
        
            
_matumo_