Search found 12 matches

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

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

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...
by unaben
Thu Aug 24, 2006 8:58 pm
Forum: Volume 110 (11000-11099)
Topic: 11040 - Add bricks in the wall
Replies: 9
Views: 2613

Thanx Macko! I got AC :D It seems that my previous code had no logic at all :oops:
by unaben
Wed Aug 23, 2006 2:11 pm
Forum: Volume 110 (11000-11099)
Topic: 11040 - Add bricks in the wall
Replies: 9
Views: 2613

I see! However, I am not sure how to find the value of the first brick from the eight row. :oops:

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

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...
by unaben
Mon Jul 31, 2006 1:27 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 35750

I got AC. :D

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

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 :wink:
by unaben
Fri Jul 28, 2006 3:50 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15784

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...
by unaben
Mon Jul 24, 2006 11:02 am
Forum: Volume 107 (10700-10799)
Topic: 10714 - Ants
Replies: 20
Views: 12964

Thanx Macko :wink: What a stupid mistake. I got AC now :P
by unaben
Tue Jul 11, 2006 2:26 pm
Forum: Volume 107 (10700-10799)
Topic: 10714 - Ants
Replies: 20
Views: 12964

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!
by unaben
Mon Jul 10, 2006 11:02 pm
Forum: Volume 102 (10200-10299)
Topic: 10293 - Word Length and Frequency
Replies: 18
Views: 8015

I got AC now :D
by unaben
Mon Jul 10, 2006 10:53 pm
Forum: Volume 102 (10200-10299)
Topic: 10293 - Word Length and Frequency
Replies: 18
Views: 8015

10293 - Word Length and Frequency

I got run time error on this problem. :cry: Could someone please help me. :o
Here is my code:

Removed

Go to advanced search