結果
| 問題 | No.233 めぐるはめぐる (3) |
| コンテスト | |
| ユーザー |
htkb
|
| 提出日時 | 2018-05-01 11:38:11 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 629 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 27,596 KB |
| 最終ジャッジ日時 | 2026-03-16 07:08:29 |
| 合計ジャッジ時間 | 13,643 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 10 |
ソースコード
from itertools import permutations
name = set()
add, diff = name.add, name.difference_update
consonant = ["", "n", "b", "m", "g", "r"]
vowel = ["i", "a", "a", "e", "u", "u"]
for a, c, e, g, i, k in permutations(consonant):
for b, d, f, h, j, l in permutations(vowel):
add(a+b+c+d+e+f+g+h+i+j+k+l)
n = int(input())
for _ in [0]*n:
diff(input())
print(name.pop() if name else "NO")
htkb