結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-19 19:30:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 626 ms / 1,000 ms |
| コード長 | 424 bytes |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 23,028 KB |
| 最終ジャッジ日時 | 2024-09-18 23:44:41 |
| 合計ジャッジ時間 | 7,223 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
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 = set(itertools.permutations(s))
bb = set(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")