http://acm.hdu.edu.cn/showproblem.php?pid=1875
我只想问这样为什么一直 wrong ,求各路大神指教!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include
#include
#include
#include
using namespace std;
int c,k,...
分类:
其他好文 时间:
2015-03-31 09:05:10
阅读次数:
104
#includeint main(){ int c[51]={1,1}; int time; int a,b,n; int i; while(scanf("%d %d %d",&a,&b,&n)!=EOF){ if(a==0&&b==0&&n==0) break; a%=7; b%=7; ...
分类:
其他好文 时间:
2015-03-30 20:23:44
阅读次数:
165
#include #include int main(){ int time; int n; int start,end; int sum; int a[100001]; int startsum,endsum; //参数 int i,j,x; scanf("%d",&time); for(i=1....
分类:
其他好文 时间:
2015-03-29 18:02:45
阅读次数:
115
/*#include#include#includeint main(){ int n; int i,j,q;//计数 int al=0; int bl=0; int cl,dl; char turn; char a[1001]; char b[1001]; char c[1002]; int su...
分类:
其他好文 时间:
2015-03-29 16:27:02
阅读次数:
336
这题比较坑!!!!当整数读入的时候别忘了末尾零!!!!要输出!!!!总是wrong answer所以改成当字符串读入,还是wrong answer ,我也是无语了。原来是0的首字母是O不是Z啊!!!!坑!!!!!#include #include using namespace std;char a...
分类:
其他好文 时间:
2015-03-28 11:27:10
阅读次数:
112
#includeint right=0,wrong=0;void jia(){int a,b,c;a=rand()%100;b=rand()%100;printf("%d+%d=",a,b);scanf("%d",&c);if(a+b!=c){printf("回答错误\n");wrong++;}el...
分类:
其他好文 时间:
2015-03-27 23:38:54
阅读次数:
231
一,设计思路:本次的实现目标是在上次代码的基础之上实现用户输入答案,并判断答案是否正确并进行统计,最后输出正确答案的个数。判断答案是否正确的思路是在上次的基础之上先定义wrong(用来统计错误个数)right(用来统计正确的个数)k1,参数。在void Display函数中定义答案的判断和正确错误的...
分类:
其他好文 时间:
2015-03-22 00:24:40
阅读次数:
134
At first beginning, I was trying to use hash set to record the characters. But I found that was wrong.Because if there are couple same chars, when you...
分类:
其他好文 时间:
2015-03-20 08:06:07
阅读次数:
164
问题
这里主要讨论函数的参数,应该是结构体呢,还是结构体的地址,还是二者都行。
实验证明,只能用结构体的地址。
代码
#include
#include
#include
typedef struct
{
int a; //"int a=0;" is wrong
int b[10];
}STU;
void init_struct_point(STU *s){...
分类:
其他好文 时间:
2015-03-19 11:30:13
阅读次数:
112
java.lang.IllegalArgumentException: Wrong state class
按照Log的提示,是id起了冲突。但是我经过仔细查看XML布局文件,并没有起冲突的ID,事实上,在xml布局文件中经常有重名的id。网上还有一些说通过clean项目,这个也解决不了问题。...
分类:
编程语言 时间:
2015-03-17 20:19:43
阅读次数:
142