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 ...
Search found 3 matches
- Wed Oct 11, 2006 7:56 am
- Forum: Volume 108 (10800-10899)
- Topic: 10878 - Decode the tape
- Replies: 23
- Views: 20122
- Wed Oct 11, 2006 7:04 am
- Forum: Volume 109 (10900-10999)
- Topic: 10948 - The primary problem
- Replies: 27
- Views: 27128
- Tue Oct 10, 2006 5:08 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10948 - The primary problem
- Replies: 27
- Views: 27128
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 ...
#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 ...