結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-10-30 01:06:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 518 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 39,156 KB |
| 最終ジャッジ日時 | 2024-07-06 21:04:40 |
| 合計ジャッジ時間 | 22,596 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 3 |
| other | TLE * 11 |
ソースコード
from itertools import permutations
X=list(permutations("nbmgr"))
Y=list(permutations("iaaeuu"))
S=set()
for x in X:
for y in Y:
A=[]
for i in range(5):
A.append(x[i])
A.append(y[i])
for i in range(len(A)):
S.add("".join(A[:i]+[y[-1]]+A[i:]))
N=int(input())
LIST=set([input() for i in range(N)])
if len(LIST)==len(S):
print("NO")
else:
for s in S:
if s in LIST:
pass
else:
print(s)
break
titia