SCU4436-Easy Math
来源:互联网 发布:小榕软件 编辑:程序博客网 时间:2024/06/06 02:26
题目链接:http://acm.scu.edu.cn/soj/problem.action?id=4436
题意:给你n个整数,求这n个数的平方根和是否是一个整数;
#include <iostream>#include <cstdio>#include <stack>#include <queue>#include <cstring>#include <string>#include <algorithm>#include <cmath>#include <bitset>#include <functional>#include <vector>#include <set>#include <map>using namespace std;#define LL long longconst int INF=0x3f3f3f3f;int a[100090];int main(){ int n; while(~scanf("%d",&n)) { int flag=1; for(int i=1;i<=n;i++) { scanf("%d",&a[i]); int k=sqrt(a[i]); if(k*k!=a[i]) flag=0; } if(flag) printf("Yes\n"); else printf("No\n"); } return 0;}
0 0
- SCU4436-Easy Math
- 【SCU4436】【数学归纳】【二分】Easy Math题解
- [SCU4436] Easy Math [2015 Sichuan Province Contest Final A]
- [math][第二阶段-easy math][HDU-1108]最小公倍数
- [math][第二阶段-easy math][HDU-1722]Cake
- HDU 4565 So Easy ***MATH
- [math][第二阶段-easy math][HDU-2138]How many prime numbers
- [math][第二阶段-easy math][HDU-1713]相遇周期
- [math][第二阶段-easy math][HDU-2136]Largest prime factor
- [math][第二阶段-easy math][HDU-2504]又见GCD
- 【leetcode】【Easy】【258. Add Digits】【Math】
- leetcode math easy 那些奇怪的求法
- SCU 4436 Easy Math (2015四川省省赛A题)
- 2015弱校联盟(1) -A. Easy Math
- 【leetcode】【Easy】【453. Minimum Moves to Equal Array Elements】【math】
- LeetCode-Easy部分中标签为Math的所有题目
- LeetCode-Easy部分中标签为Math 268. Missing Number
- LeetCode-Easy部分中标签为Math 507. Perfect Number
- 时间序列中Hurst指数的计算(python代码)
- Java中常用的解析Excel文件的库
- CSS定位实践
- Android性能之多线程篇
- Activity的生命周期
- SCU4436-Easy Math
- recycleView之 databinding简单利用
- 萤石云初始化爬坑2——摄像头预览
- 阿里巴巴2017实习生招聘笔试题
- 刷题总结#16
- vim中ctags、cscope安装及使用
- EditText的password属性值(隐藏密码**)
- eclipse打开文件位置插件
- jmeter邮件观察仪