## Search found 7 matches

Fri Mar 08, 2013 12:56 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 66245

### 10200 - Prime Time

don't really get it why RTE....plz can anyone help plz..... #include<stdio.h> #include<iostream> #include<math.h> using namespace std; long long int a[10010],b[10010]; void prime() { long long int i,j; for(i=2;i*i<=10000;i++) { if(a ==0) { for(j=i*i;j<=10000;j+=i) { a[j]=1; } } } for(i=2,j=0;i<=1000...
Fri Mar 01, 2013 12:31 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 26889

### Re: 514 wa

Thank u so much IVB.....for your help.....i skipped some point.....now its AC>.....
Fri Mar 01, 2013 7:05 am
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 26889

### 514

Can anyone explain this test case...
5 6 4 8 7 3 2 9 1 10
yes
Sat Dec 22, 2012 10:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 65641

### 10035 - Primary Arithmetic

plz can anyone describe why it is not working.... #include<stdio.h> #include<string.h> int main() { char a[1000],b[1000]; int i,j,k,l,t; while(scanf("%s %s",&a,&b)!=EOF) { if(a[0]=='0'&&b[0]=='0') { for(i=0,k=0;a !='\0';i++) { if(a =='0')k++; } for(j=0,t=0;b[j]!='\0';j++) {...
Sat Dec 22, 2012 9:27 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 47842

### 10324 - Zeros and Ones

pls can anyone tell why it is not accepting plzz.... #include<stdio.h> #include<string.h> int main() { char a[1000001]; int n,i,j,k,l,b=1,c,t; while(scanf("%s",&a)!=EOF) { if(strlen(a)==0)break; scanf("%d",&n); for(k=1;k<=n;k++) { scanf("%d %d",&i,&j); i...
Mon Dec 17, 2012 6:42 pm
Forum: Volume 111 (11100-11199)
Topic: 11192 - Group Reverse
Replies: 22
Views: 12122

### Re: 11192 - Group Reverse

Thanks got ac....@brianfry713
Fri Dec 14, 2012 9:06 pm
Forum: Volume 111 (11100-11199)
Topic: 11192 - Group Reverse
Replies: 22
Views: 12122

### Re: 11192 - Group Reverse

Please can any one tell why i am getting compiler Error????I m really fed up with this things... #include<stdio.h> #include<string.h> int main() { int n,i,j,k,l,t; char a[1000],b[1000]; while(scanf("%d",&n)!=EOF) { if(n==0)break; else { scanf("%s",&a); l=strlen(a)/n; for(...