結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-26 13:43:07 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 570 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-15 07:58:50 |
| 合計ジャッジ時間 | 3,410 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 40 WA * 3 |
ソースコード
Sb = input()
N = int(input())
Sa = input()
is_success = lambda b: 'SUCCESS' if b else 'FAILURE'
if 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))