結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
htkb
|
| 提出日時 | 2018-05-01 11:38:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 23,788 KB |
| 最終ジャッジ日時 | 2024-06-28 00:04:40 |
| 合計ジャッジ時間 | 18,980 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 8 TLE * 2 |
ソースコード
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