AE. [GESP202409 六级] 小杨和整数拆分
[GESP202409 六级] 小杨和整数拆分
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目背景
对应的选择、判断题:https://ti.luogu.com.cn/problemset/1162
题目描述
小杨有一个正整数 ,小杨想将它拆分成若干完全平方数的和,同时小杨希望拆分的数量越少越好。
编程计算总和为 的完全平方数的最小数量。
输入格式
输入只有一行一个正整数 。
输出格式
输出一行一个整数表示答案。
18
2
提示
数据规模与约定
对全部的测试数据,保证 。
2025年CSP-J线性DP
- Status
- Done
- Problem
- 31
- Open Since
- 2025-9-1 0:00
- Deadline
- 2025-10-31 23:59
- Extension
- 24 hour(s)