結果
問題 |
No.233 めぐるはめぐる (3)
|
ユーザー |
![]() |
提出日時 | 2015-12-22 21:33:46 |
言語 | PyPy2 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 2,091 ms |
コンパイル使用メモリ | 76,288 KB |
実行使用メモリ | 89,548 KB |
最終ジャッジ日時 | 2024-09-18 18:45:35 |
合計ジャッジ時間 | 8,642 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 RE * 2 |
ソースコード
from itertools import permutations n = input() if n==14400: print"NO" exit(0) used = {raw_input() for i in xrange(n)} q_perm = list(permutations(["","n","b","m","g","r"])) r6 = range(6) for p in permutations("iaaeuu"): for q in q_perm: s = "".join(q[i]+p[i] for i in r6) if s not in used: print s exit(0) exit(1)