結果
問題 |
No.233 めぐるはめぐる (3)
|
ユーザー |
![]() |
提出日時 | 2018-05-01 11:45:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 705 ms / 1,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 53,428 KB |
最終ジャッジ日時 | 2024-06-28 00:05:37 |
合計ジャッジ時間 | 11,611 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
from itertools import permutations consonant = ["", "n", "b", "m", "g", "r"] vowel = ["i", "a", "a", "e", "u", "u"] name = set( [a+b+c+d+e+f+g+h+i+j+k+l for a, c, e, g, i, k in permutations(consonant) for b, d, f, h, j, l in permutations(vowel)]) name.difference_update([input() for _ in [0]*int(input())]) print(name.pop() if name else "NO")