結果
問題 | No.197 手品 |
ユーザー |
👑 ![]() |
提出日時 | 2020-10-27 04:36:08 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 65,320 KB |
最終ジャッジ日時 | 2024-07-21 21:50:08 |
合計ジャッジ時間 | 3,307 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 39 WA * 3 RE * 1 |
ソースコード
S=input()N=int(input())T=input()o,x="o","x"if S.count(o)!=T.count(o):print("SUCCESS")exit()if S.count(o)==1:p=S.index(o)q=T.index(o)else:p=S.index(x)q=T.index(x)if N==0:F=(p!=q)elif N==1:if p==0:F=(q==2)elif p==1:F=(q==0) or (q==2)else:F=(q==0)else:F=Falseif F:print("SUCCESS")else:print("FAILURE")