結果
| 問題 |
No.197 手品
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-10 14:53:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-15 23:12:46 |
| 合計ジャッジ時間 | 3,192 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 42 WA * 1 |
ソースコード
SB = input()
N = int(input())
SA = input()
pat = []
if N==1:
pat = [[1,0,2], [0,2,1]]
elif N % 2 == 0:
pat = [[0,1,2], [1,2,0], [2,0,1]]
else:
pat = [[1,0,2], [0,2,1], [2,1,0]]
success = True
for p in pat:
if all(SB[i] == SA[p[i]] for i in range(3)):
success = False
break
print('SUCCESS' if success else 'FAILURE')