結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-01-31 18:19:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 496 bytes |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 107,776 KB |
| 最終ジャッジ日時 | 2024-06-29 02:42:39 |
| 合計ジャッジ時間 | 7,629 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 11 |
ソースコード
n,*s = open(0).read().split()
s = set(s)
from itertools import permutations
print(s)
for b in permutations("aauuie"):
for a in permutations("mgnbr"):
for j in range(6):
r = []
c = 0
for i in range(6):
while c < i + (j <= i):
r.append(b[c])
c += 1
if i < 5: r.append(a[i])
if "".join(r) not in s:
print("".join(r))
exit()
print("NO")
convexineq