結果
| 問題 | No.233 めぐるはめぐる (3) |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-08-13 22:06:26 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 250 ms / 1,000 ms |
| + 587µs | |
| コード長 | 437 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 64,580 KB |
| 実行使用メモリ | 74,744 KB |
| 最終ジャッジ日時 | 2026-11-02 00:46:03 |
| 合計ジャッジ時間 | 5,397 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
from itertools import permutations
N = int(input())
S = set([input() for _ in range(N)])
A = ["","n","b","m","g","r"]
B = ["i","a","a","e","u","u"]
for X in permutations(range(6),6):
for Y in permutations(range(6),6):
tmp = []
for i in range(6):
tmp.append(A[X[i]])
tmp.append(B[Y[i]])
tmp = "".join(tmp)
if tmp not in S:
print(tmp)
exit()
print("NO")
ntuda