結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-10-27 04:36:08 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 90,752 KB |
| 最終ジャッジ日時 | 2026-08-22 13:32:43 |
| 合計ジャッジ時間 | 6,408 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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=False
if F:
print("SUCCESS")
else:
print("FAILURE")
Kazun