Search found 3 matches

by rafi6047
Wed Oct 11, 2006 7:56 am
Forum: Volume 108 (10800-10899)
Topic: 10878 - Decode the tape
Replies: 23
Views: 16079

10878 pls help

pls help me. i dont know y im getting WA. this is my code: #include<iostream.h> #include<stdio.h> #include<string.h> int main() { char start[20],end[20], middle[1000][20]; int i,j,k,l; while(gets(start)) { i=0; while(gets(middle[i++])) { if(!strcmp("| o. o |",middle[i-1])) break; } gets(end); for(j=...
by rafi6047
Wed Oct 11, 2006 7:04 am
Forum: Volume 109 (10900-10999)
Topic: 10948 - The primary problem
Replies: 27
Views: 18226

thnx tan_yui. got AC. thnx very much.
by rafi6047
Tue Oct 10, 2006 5:08 pm
Forum: Volume 109 (10900-10999)
Topic: 10948 - The primary problem
Replies: 27
Views: 18226

10948 - The primary problem

someone pls help me out. im getting wa with this code, i've tried so many test cases, all the outputs r right. but still gettin wa. pls help. #include<iostream.h> #include<math.h> #define P 1000002 bool prime[P]; int main() { int i,j; prime[0]=prime[1]=1; for(i=2; i<=sqrt(P-1); i++) { if(prime ==0) ...

Go to advanced search