[GESP202403 三级] 完全平方数
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/1143
题目描述
小杨同学有一个包含 个非负整数的序列 ,他想要知道其中有多少对下标组合 (),使得 是完全平方数。
如果 是完全平方数,则存在非负整数 使得 。
输入格式
第一行一个非负整数 ,表示非负整数个数。
第二入行包含 个非负整数 ,表示序列 包含的非负整数。
输出格式
输出一行一个整数表示答案。
5
1 4 3 3 5
3
提示
对全部的测试数据,保证 ,。
2024~2025第二学期入门选修课期末考
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-6-13 16:15
- End at
- 2025-6-13 17:15
- Duration
- 1 hour(s)
- Host
- Partic.
- 19