結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-26 13:45:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 438 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 36,056 KB |
| 最終ジャッジ日時 | 2026-04-02 20:23:51 |
| 合計ジャッジ時間 | 5,842 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))