結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー | 🍡yurahuna |
提出日時 | 2016-02-29 00:48:18 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 11,876 KB |
実行使用メモリ | 23,664 KB |
最終ジャッジ日時 | 2023-10-24 19:03:38 |
合計ジャッジ時間 | 4,631 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 248 ms
23,292 KB |
testcase_01 | AC | 167 ms
15,848 KB |
testcase_02 | AC | 96 ms
12,888 KB |
testcase_03 | AC | 180 ms
16,424 KB |
testcase_04 | TLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
ソースコード
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')