結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-11-24 09:44:54 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 67 ms / 1,000 ms |
| + 778µs | |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 95,824 KB |
| 実行使用メモリ | 78,720 KB |
| 最終ジャッジ日時 | 2026-09-04 17:26:58 |
| 合計ジャッジ時間 | 5,730 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 43 |
ソースコード
a, b, c = list(input())
n = int(input())
L = [
set([(a, b, c)]),
set([(a, c, b), (b, a, c)]),
set([(a, b, c), (c, a, b), (b, c, a)]),
set([(a, c, b), (b, a, c), (c, b, a)]),
]
if n > 3:
n = n % 2 + 2
d = {"a": a, "b": b, "c": c}
B = tuple(input())
print("SUCCESS" if not B in L[n] else "FAILURE")
ohana