## Search found 8 matches

Fri Sep 23, 2005 11:45 am
Forum: Volume 101 (10100-10199)
Topic: 10142 - Australian Voting
Replies: 82
Views: 31864

### 10142 - Australian Voting WA

Can anybody help me, what is wrong with my code? I got AC in http://www.programming-challenges.com/, but WA in UVA. Or give me some critical i/o please. Thanks in advance. /* ACM Problem Set */ /* Problem 10142 */ /* Australian Voting */ #include <cstdio> #include <string.h> using namespace std; int...
Tue Aug 30, 2005 9:05 pm
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 13787

### 143 Need help!

Why WA? Please help me... i mad with this problem... /* ACM Problem Set */ /* Problem 143 */ /* Orchard Trees */ #include <cstdio> #include <math.h> #include <stdlib.h> #define min(a,b) a < b ? a : b #define max(a,b) a > b ? a : b #define less0(a) a < 1 ? 1 : a #define most100(a) a > 99 ? 99 : a #de...
Sun Mar 20, 2005 8:10 am
Forum: Volume 108 (10800-10899)
Topic: 10820 - Send a Table
Replies: 34
Views: 14676
Now I use GCC 3.3.3 (cygwin special) and have no more problems...
Wed Mar 16, 2005 12:22 pm
Forum: Volume 108 (10800-10899)
Topic: 10820 - Send a Table
Replies: 34
Views: 14676
Thanks a lot!
Wed Mar 16, 2005 11:44 am
Forum: Volume 108 (10800-10899)
Topic: 10820 - Send a Table
Replies: 34
Views: 14676
I try to use

Code: Select all

``````#include <cstdio>
using namespace std; ``````
but CE again
Wed Mar 16, 2005 11:41 am
Forum: Volume 108 (10800-10899)
Topic: 10820 - Send a Table
Replies: 34
Views: 14676

### Compile Error C++ 10820

Its my first program in C++. I run the following code on the VC++, and it was ok. But the judge give me "Compile Error". Can anyone help me? #include <stdio.h> //using namespace std; int p[50001]; int pc[50001]; long f[50001]; void PrepareArray() { long j; for (long i = 2; i <= 50000; i++) { pc[i] =...
Sun Jan 23, 2005 11:25 pm
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 33604

### 495 - TLE

I try to solve 495, but my code got TLE. How can i optimize it? Thanks... program uva495; const dlen = 1100; var f : array [0..5100,1..dlen] of byte; s : array [0..5100] of word; i, a, max : integer; procedure SumLong (a, b, c : integer); var m, i : integer; begin m := s[b]; for i := dlen downto m d...
Sat Nov 13, 2004 3:22 pm
Forum: Volume 1 (100-199)
Topic: 121 - Pipe Fitters
Replies: 36
Views: 2842