結果
| 問題 |
No.197 手品
|
| コンテスト | |
| ユーザー |
cherrypi59
|
| 提出日時 | 2018-06-22 22:47:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 488 bytes |
| コンパイル時間 | 194 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-30 18:07:43 |
| 合計ジャッジ時間 | 2,772 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 39 WA * 2 RE * 2 |
ソースコード
def main():
sb, n, sa = input(), int(input()), input()
if sb.count("o") != sa.count("o"):
print("SUCCESS")
elif n > 1:
print("FAILURE")
elif n == 0:
if sb == sa:
print("FAILURE")
else:
print("SUCCESS")
else:
if abs(sb.index("o")-sa.index("o")) == 2 or abs(sb.index("x")-sa.index("x")) == 2:
print("SUCCESS")
else:
print("FAILURE")
if __name__ == '__main__':
main()
cherrypi59