結果
| 問題 | No.233 めぐるはめぐる (3) |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-01-31 18:20:32 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 263 ms / 1,000 ms |
| + 567µs | |
| コード長 | 487 bytes |
| 記録 | |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 64,536 KB |
| 実行使用メモリ | 83,676 KB |
| 最終ジャッジ日時 | 2026-11-01 23:30:36 |
| 合計ジャッジ時間 | 4,868 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
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