uva 11461
来源:互联网 发布:水洗唛打印软件 编辑:程序博客网 时间:2024/06/09 15:50
简单 打个表 case数不超过200 数据比较水 木有超时的风险~~
/************************************************************************* > Author: xlc2845 > Mail: xlc2845@gmail.com > Created Time: 2013年10月24日 星期四 16时01分10秒 ************************************************************************/#include <iostream>#include <cstdio>#include <cstdlib>#include <cmath>#include <vector>#include <cstring>#include <algorithm>#define maxn 210using namespace std;bool ok[100010];void init(){ memset(ok, false, sizeof(ok)); for(int i = 1; i*i <= 100000; i++) ok[i*i] = true;}int main(){ init(); int x,y,ans; while(scanf("%d%d",&x,&y) == 2 && x+y) { ans = 0; for(int i = x; i <= y; i++) if(ok[i]) ++ans; printf("%d\n",ans); } return 0;}
- uva 11461
- uva 11461
- UVa 11461 - Square Numbers
- uva 11461(水题)
- uva 11461 Square Numbers
- UVA - 11461 Square Numbers
- UVa 11461 - Square Numbers
- uva 11461 数学
- UVA 11461-Square Numbers
- uva 11461Square Numbers
- uva
- UVA
- UVA
- UVA
- uva
- UVA
- UVA
- UVA
- Android原理揭秘系列之View、ViewGroup
- VBScript 介绍
- UVa 10562 Undraw the Trees (二叉树先序遍历)
- Android4.1 InputManagerService 流程
- netfilter hook 点详解
- uva 11461
- jsp中的basePath和path
- OCP-1Z0-053-V12.02-526题
- csv
- 在32位的ubuntu12.04 上编译android 2.3.4的错误及解决方法
- mysql 替换字符串语句
- 图解CSS的padding,margin,border属性(详细介绍及举例说明)
- (c++)图6
- automake hello world 使用教程 例子