結果
| 問題 | No.233 めぐるはめぐる (3) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-19 00:31:28 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 690 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 27,724 KB |
| 最終ジャッジ日時 | 2026-08-29 07:17:02 |
| 合計ジャッジ時間 | 6,719 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 7 TLE * 1 -- * 3 |
ソースコード
N = int(input())
S = []
candi = set()
for _ in range(N):
s=input()
candi.add(s)
s = ["n","b","m","g","r",""]
b = ["i","a","a","e","u","u"]
#print(candi)
s5=[]
b6=[]
for i in range(6):
if i<5:
s5.append(i)
b6.append(i)
import itertools
ss = list(itertools.permutations(s,6))
bb = list(itertools.permutations(b,6))
#print(ss)
flag=False
for i in ss:
for j in bb:
ca = []
for k in range(len(i)):
ca.append(i[k]+j[k])
ccc = list(itertools.permutations(ca,6))
for cccc in ccc:
candidate = "".join(cccc)
if candidate not in candi:
print(candidate)
exit()
print("No")