結果
| 問題 |
No.197 手品
|
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-11-24 09:44:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 1,000 ms |
| コード長 | 322 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 81,836 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-26 08:32:46 |
| 合計ジャッジ時間 | 3,097 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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