結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-26 13:45:07 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 1,000 ms |
| + 910µs | |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 21,284 KB |
| 実行使用メモリ | 15,760 KB |
| 最終ジャッジ日時 | 2026-08-19 11:27:01 |
| 合計ジャッジ時間 | 6,992 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 43 |
ソースコード
Sb = input()
N = int(input())
Sa = input()
is_success = lambda b: 'SUCCESS' if b else 'FAILURE'
if Sb.count('o') != Sa.count('o'):
print(is_success(True))
elif N == 0:
print(is_success(Sb != Sa))
elif N >= 2:
print(is_success(False))
else:
print(is_success(Sb[1] + Sb[0] + Sb[2] != Sa and Sb[0] + Sb[2] + Sb[1] != Sa))