結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー |
|
提出日時 | 2022-05-19 00:36:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 553 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 23,412 KB |
最終ジャッジ日時 | 2024-09-17 04:52:15 |
合計ジャッジ時間 | 10,468 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 TLE * 4 |
ソースコード
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 itertoolsss = list(itertools.permutations(s))bb = list(itertools.permutations(b))#print(ss)#sprint(ss)flag=Falsefor i in ss:for j in bb:ca = ""for k in range(len(i)):ca+=i[k]+j[k]if ca not in candi:print(ca)exit()print("No")