[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
提示
数据规模与约定
对全部的测试数据,保证 。
青创八10.29
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-10-29 19:15
- End at
- 2025-10-29 20:06
- Duration
- 0.9 hour(s)
- Host
- Partic.
- 29