結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2016-02-29 00:47:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 406 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,152 KB |
| 最終ジャッジ日時 | 2024-09-24 12:26:19 |
| 合計ジャッジ時間 | 4,133 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 5 |
ソースコード
import itertools as itr
N = int(input())
if N >= 100000:
print('NO')
exit()
S = [input() for i in range(N)]
for a in itr.permutations(['i', 'a', 'a', 'e', 'u', 'u'], 6):
for b in itr.permutations(['n', 'b', 'm', 'g', 'r'], 5):
s = ""
for i in range(5):
s += a[i] + b[i]
s += a[5]
if not s in S:
print(s)
exit()
print('NO')
🍡yurahuna