結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-01-31 18:20:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 492 ms / 1,000 ms |
| コード長 | 487 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 107,732 KB |
| 最終ジャッジ日時 | 2024-06-29 02:43:27 |
| 合計ジャッジ時間 | 4,814 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
n,*s = open(0).read().split()
s = set(s)
from itertools import permutations
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