結果

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

ソースコード

diff #

def chk(sa,sb,N):
    if sa=="xox" and N==1:              return 0
    if sa=="oxo" and N==1:              return 0
    if sa==sb:                          return 1
    if sa.count('o')!=sb.count('o'):    return 0
    return 1
sa=input()
N = int(input())
sb=input()
print(["SUCCESS","FAILURE"][chk(sa,sb,N)])
0