結果
| 問題 | 
                            No.233 めぐるはめぐる (3)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-05-19 00:45:17 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 426 bytes | 
| コンパイル時間 | 285 ms | 
| コンパイル使用メモリ | 82,284 KB | 
| 実行使用メモリ | 85,888 KB | 
| 最終ジャッジ日時 | 2024-09-17 05:01:42 | 
| 合計ジャッジ時間 | 4,467 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge6 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 9 WA * 2 | 
ソースコード
N = int(input())
S = []
candi = set()
for _ in range(N):
    candi.add(input())
s = ["n","b","m","g","r",""]
b = ["i","a","a","e","u","u"]
#print(candi)
import itertools
ss = list(itertools.permutations(s))
bb = list(itertools.permutations(b))
for i in ss:
    for j in bb:
        ca = ""
        for k in range(6):
            ca+=i[k]+j[k]
        if ca not in candi:
            print(ca)
            exit()
print("No")