結果

問題 No.197 手品
ユーザー _matumo_
提出日時 2019-07-22 18:48:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-23 18:38:58
合計ジャッジ時間 2,615 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 40 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

def chk(sa,sb,N):
    if sa==sb:                          return 1
    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)])
0