码迷,mamicode.com
首页 >  
搜索关键字:eof    ( 7139个结果
九度OJ:题目1202:排序
1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 int num=0,i=0; 7 while(scanf("%d",&num)!=EOF) 8 { 9 int arr[110];...
分类:编程语言   时间:2015-04-22 20:26:32    阅读次数:161
杭电(存一寸光阴,换一个世纪)
开始的错误答案,看了一个小时才发现哪里错了我也是醉了。(请注意循环后要清0,上了不止一次当了)#include#includeint main(){ int n,m,i,j,sum=0,num=0; while(scanf("%d %d",&n,&m)!=EOF) { if(n#includei.....
分类:其他好文   时间:2015-04-22 20:19:37    阅读次数:94
hive FAILED: ParseException line 1:814 cannot recognize input near ‘;’ <EOF>’
beeline -f 执行sql文件,如果报“Error: Error while compiling statement: FAILED: ParseException line 1:814 cannot recognize input near ‘;’ ’ in expression specification (state=42000,code=40000)”错误。可能是因为“;”后面有空格...
分类:其他好文   时间:2015-04-22 18:38:45    阅读次数:5928
hdu 114 Piggy-Bank(完全背包)
题目链接:点击打开链接 AC代码: #include #include #include using namespace std ; int E,F,t,p[10005],w[10005],n ; int dp[100005] ; int main() { while(scanf("%d",&t)!=EOF) { while(t--)...
分类:其他好文   时间:2015-04-21 22:50:37    阅读次数:160
AndroidTips:selector的disable状态为什么无效?
正确的姿势: ----EOF----
分类:移动开发   时间:2015-04-21 17:46:39    阅读次数:128
杭电2002(我们没有什么不同)
#include#include#define PI 3.1415927int main(){ double v,r; while(scanf("%lf",&r)!=EOF) { v=r*r*r*PI*4/3; printf("%.3lf\n",v); } }
分类:其他好文   时间:2015-04-20 22:25:47    阅读次数:140
第几天
输入年月日 ,输出这是这年的第几天#include int main(){ int y,m,d,i,n,j,t; while(scanf("%d",&n)!=EOF) {t=0; while(n--) { scanf("%d %d %d",&y,&m,&d); if(m8) { ...
分类:其他好文   时间:2015-04-20 22:22:33    阅读次数:132
杭电2004(万一实现了呢)
#includeint main(){int t; while(scanf("%d",&t)!=EOF) {while(1) { if(t>100 || t=90) {printf("A\n"); break; } else if(t>=80) {printf("B\n"); br...
分类:其他好文   时间:2015-04-20 22:20:36    阅读次数:135
杭电2001(梦想还是要有的)
#include#includeint main(){ double x1,y1,x2,y2,l,a; while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF) { a=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); ...
分类:其他好文   时间:2015-04-20 22:09:44    阅读次数:112
Python 中 open()文件操作的方式
Python的open方法用来打开一个文件。第一个参数是文件的位置和文件名,第二个参数是读写模式;f=open('/1.txt','w')读写模式的类型有:rU 或 Ua 以读方式打开, 同时提供通用换行符支持 (PEP 278)w 以写方式打开,a 以追加模式打开 (从 EOF 开始, 必...
分类:编程语言   时间:2015-04-20 18:22:24    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!