結果
| 問題 | No.3714 Prefix Team Name |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-19 09:06:02 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 505 ms / 2,000 ms |
| + 922µs | |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 135,980 KB |
| 最終ジャッジ日時 | 2026-09-19 09:06:11 |
| 合計ジャッジ時間 | 8,575 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import itertools
X = input()
Y = input()
Z = input()
px = [X[:i] for i in range(1, len(X) + 1)]
py = [Y[:i] for i in range(1, len(Y) + 1)]
pz = [Z[:i] for i in range(1, len(Z) + 1)]
ans = set()
for a in px:
for b in py:
for c in pz:
for perm in itertools.permutations([a, b, c], 3):
ans.add("".join(perm))
print(len(ans))