## Search found 12 matches

Mon Aug 28, 2006 10:35 pm
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 39307

### 583 - WA Prime Factors

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[10000]...
Sun Aug 27, 2006 12:24 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 26353

### 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 p = 2; while(p...
Thu Aug 24, 2006 8:58 pm
Forum: Volume 110 (11000-11099)
Topic: 11040 - Add bricks in the wall
Replies: 9
Views: 2668
Thanx Macko! I got AC It seems that my previous code had no logic at all
Wed Aug 23, 2006 2:11 pm
Forum: Volume 110 (11000-11099)
Topic: 11040 - Add bricks in the wall
Replies: 9
Views: 2668
I see! However, I am not sure how to find the value of the first brick from the eight row.

Thanx Erik
Wed Aug 23, 2006 1:14 am
Forum: Volume 110 (11000-11099)
Topic: 11040 - Add bricks in the wall
Replies: 9
Views: 2668

### 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[40]>>a...
Mon Jul 31, 2006 1:27 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 36985
I got AC.

Silly mistake
Mon Jul 31, 2006 1:15 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 36985

### 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

Fri Jul 28, 2006 3:50 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 16247

### 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(first...
Mon Jul 24, 2006 11:02 am
Forum: Volume 107 (10700-10799)
Topic: 10714 - Ants
Replies: 20
Views: 13146
Thanx Macko What a stupid mistake. I got AC now
Tue Jul 11, 2006 2:26 pm
Forum: Volume 107 (10700-10799)
Topic: 10714 - Ants
Replies: 20
Views: 13146

### 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!
Mon Jul 10, 2006 11:02 pm
Forum: Volume 102 (10200-10299)
Topic: 10293 - Word Length and Frequency
Replies: 18
Views: 8129
I got AC now
Mon Jul 10, 2006 10:53 pm
Forum: Volume 102 (10200-10299)
Topic: 10293 - Word Length and Frequency
Replies: 18
Views: 8129