Search found 4 matches

by Crocodile_009
Tue Oct 23, 2012 12:50 pm
Forum: Volume 104 (10400-10499)
Topic: 10466 - How Far?
Replies: 25
Views: 8391

Re: 10466 - How Far?

Code: Select all

AC :)
by Crocodile_009
Sat Aug 11, 2012 7:41 pm
Forum: Volume 105 (10500-10599)
Topic: 10530 - Guessing Game
Replies: 57
Views: 27658

Re: 10530 - Guessing Game

i can't find out the reason why WA :( plz help. here is my code: #include<cstdio> #include<cstring> #include<iostream> using namespace std; int main(){ int ara[11],i,j,k=1,num,flag,c=0; char k1[15],k2[15]; while(scanf("%d",&num)==1 && num!=0){ c=0; for(i=0;i<10;i++){ ara =k; k++; } while(c!=1){ scan...
by Crocodile_009
Mon Mar 12, 2012 10:19 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78444

Re: 10038 - Jolly Jumpers

i got RE . where's my fault,plz anyone show me :( my code is here: #include<stdio.h> #include<math.h> int main() { int i,j,k,t,sub,temp,sum=0; int ara[100]; while(scanf("%d",&t)==1){ j=(t*(t-1))/2; for(i=0;i<t;i++) { scanf("%d",&ara ); } for(i=0;i<t-1;i++){ temp=abs(ara[i+1]-ara ); sum+=temp; } if(s...
by Crocodile_009
Thu Mar 08, 2012 8:16 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 53308

Re: 10070 - Leap Year or Not Leap Year and …

i can't understand why my code gets WA :( here is my code: #include<stdio.h> int main() { int year,temp; while(scanf("%d",&year)==1) { printf("\n"); if( ((year%4==0)&&(year%100!=0)) ||(year%400==0) ){ printf("This is leap year.\n"); if(year%15==0){ printf("This is huluculu festival year.\n"); if(yea...

Go to advanced search