Hello everyone! :wink: I am getting WA with my code. I tried all the possible input that I could think of, but nothing. :o Could someone plz take a look at my code and give me a hint where the mistake is?
Here is the code:
#include<iostream>
using namespace std;
long int*primes = new long int ...
Search found 12 matches
- Mon Aug 28, 2006 10:35 pm
- Forum: Volume 5 (500-599)
- Topic: 583 - Prime Factors
- Replies: 171
- Views: 61135
- Sun Aug 27, 2006 12:24 am
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60415
406 WA
I am getting WA all the time with my code. :o Could someone plz help :wink:
Here is my code:
#include<iostream>
using namespace std;
int main()
{
bool *a = new bool[1001];
int n = 1000;
int primes[1000];
primes[0]=1;
int prim=1;
a[0] = 0;
a[1] = 1;
for(int i=2; i<=1000; i++)
a =1;
int ...
Here is my code:
#include<iostream>
using namespace std;
int main()
{
bool *a = new bool[1001];
int n = 1000;
int primes[1000];
primes[0]=1;
int prim=1;
a[0] = 0;
a[1] = 1;
for(int i=2; i<=1000; i++)
a =1;
int ...
- Thu Aug 24, 2006 8:58 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11040 - Add bricks in the wall
- Replies: 9
- Views: 3587
- Wed Aug 23, 2006 2:11 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11040 - Add bricks in the wall
- Replies: 9
- Views: 3587
- Wed Aug 23, 2006 1:14 am
- Forum: Volume 110 (11000-11099)
- Topic: 11040 - Add bricks in the wall
- Replies: 9
- Views: 3587
11040 - Add bricks in the wall
I am getting WA with my code :( Can someone plz give me a hint.
Here is the code:
#include<iostream>
using namespace std;
void handle()
{
int array[49];
cin>>array[0]>>array[3]>>array[5]>>array[10]>>array[12]>>array[14]>>array[21]>>array[23]>>array[25]>>array[27]
>>array[36]>>array[38]>>array ...
Here is the code:
#include<iostream>
using namespace std;
void handle()
{
int array[49];
cin>>array[0]>>array[3]>>array[5]>>array[10]>>array[12]>>array[14]>>array[21]>>array[23]>>array[25]>>array[27]
>>array[36]>>array[38]>>array ...
- Mon Jul 31, 2006 1:27 am
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56753
- Mon Jul 31, 2006 1:15 am
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56753
727 - TLE
I am getting TLE in this problem.
Could someone plz take at look at my code. Here it is:
//CODE REMOVED AFTER AC
Thanx in advance

//CODE REMOVED AFTER AC
Thanx in advance

- Fri Jul 28, 2006 3:50 pm
- Forum: Volume 7 (700-799)
- Topic: 729 - The Hamming Distance Problem
- Replies: 54
- Views: 21436
729 - WA
I am getting WA with this code :( I tried the input that I found on the board but I still cannot find where the mistake is :o . Can someone plz help.
Here is my code
#include<iostream>
#include<string>
#include<algorithm>
#include<map>
using namespace std;
bool first = true;
void handle()
{
if ...
Here is my code
#include<iostream>
#include<string>
#include<algorithm>
#include<map>
using namespace std;
bool first = true;
void handle()
{
if ...
- Mon Jul 24, 2006 11:02 am
- Forum: Volume 107 (10700-10799)
- Topic: 10714 - Ants
- Replies: 20
- Views: 16656
- Tue Jul 11, 2006 2:26 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10714 - Ants
- Replies: 20
- Views: 16656
10714 - Ants W.A
I got W.A on this problem.
Could someone plz give me the I/O.
Here is my code:
REMOVED AFTER AC!

Here is my code:
REMOVED AFTER AC!
- Mon Jul 10, 2006 11:02 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10293 - Word Length and Frequency
- Replies: 18
- Views: 11165
- Mon Jul 10, 2006 10:53 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10293 - Word Length and Frequency
- Replies: 18
- Views: 11165
10293 - Word Length and Frequency
I got run time error on this problem.
Could someone please help me.
Here is my code:
Removed


Here is my code:
Removed