[GESP202406二级] 平方之和
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.
题目背景
2024 年 6 月 GESP C++ 二级编程第 1 题
题目描述
小杨有 个正整数 ,他想知道对于所有的 ,是否存在两个正整数 和 满足 。
输入格式
第一行包含一个正整数 ,代表正整数数量。
之后 行,每行包含一个正整数,代表 。
输出格式
对于每个正整数 ,如果存在两个正整数 和 满足 ,输出 Yes ,否则输出 No。
样例
2
5
4
Yes
No
样例解释
对于第一个正整数,存在 ,因此答案为 Yes。
数据范围
对于全部数据,保证有 。
基础语法巩固(1)
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2026-5-23 9:00
- End at
- 2026-5-29 5:00
- Duration
- 140 hour(s)
- Host
- Partic.
- 5