結果
問題 |
No.233 めぐるはめぐる (3)
|
ユーザー |
![]() |
提出日時 | 2016-02-29 00:48:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,040 KB |
最終ジャッジ日時 | 2024-09-24 12:34:53 |
合計ジャッジ時間 | 4,825 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 4 TLE * 1 -- * 6 |
ソースコード
import itertools as itr N = int(input()) 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')