結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー | convexineq |
提出日時 | 2021-01-31 18:20:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 492 ms / 1,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 417 ms |
コンパイル使用メモリ | 87,128 KB |
実行使用メモリ | 107,956 KB |
最終ジャッジ日時 | 2023-09-11 12:14:28 |
合計ジャッジ時間 | 6,004 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 117 ms
97,284 KB |
testcase_01 | AC | 98 ms
87,332 KB |
testcase_02 | AC | 85 ms
78,300 KB |
testcase_03 | AC | 99 ms
89,420 KB |
testcase_04 | AC | 334 ms
107,852 KB |
testcase_05 | AC | 484 ms
107,872 KB |
testcase_06 | AC | 171 ms
107,888 KB |
testcase_07 | AC | 486 ms
107,956 KB |
testcase_08 | AC | 492 ms
107,876 KB |
testcase_09 | AC | 71 ms
71,356 KB |
testcase_10 | AC | 73 ms
71,684 KB |
testcase_11 | AC | 73 ms
71,528 KB |
testcase_12 | AC | 99 ms
88,784 KB |
testcase_13 | AC | 116 ms
97,676 KB |
ソースコード
n,*s = open(0).read().split() s = set(s) from itertools import permutations for b in permutations("aauuie"): for a in permutations("mgnbr"): for j in range(6): r = [] c = 0 for i in range(6): while c < i + (j <= i): r.append(b[c]) c += 1 if i < 5: r.append(a[i]) if "".join(r) not in s: print("".join(r)) exit() print("NO")