結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー | htkb |
提出日時 | 2018-05-01 11:38:11 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 10,676 KB |
実行使用メモリ | 21,232 KB |
最終ジャッジ日時 | 2023-09-10 08:37:28 |
合計ジャッジ時間 | 16,716 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 663 ms
20,640 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 594 ms
20,100 KB |
testcase_10 | AC | 586 ms
20,220 KB |
testcase_11 | AC | 587 ms
20,184 KB |
testcase_12 | AC | 761 ms
20,908 KB |
testcase_13 | WA | - |
ソースコード
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")