Search found 137 matches

by C8H10N4O2
Wed Apr 17, 2002 5:26 am
Forum: Other words
Topic: Programming Competition
Replies: 4
Views: 2307

You gotta be > 18 to get paid thou. :cry:
by C8H10N4O2
Wed Apr 17, 2002 5:23 am
Forum: Other words
Topic: Gzip compression
Replies: 14
Views: 4090

I have seen boards where gzip is optional based on member preference. I don't remember if it was an implementation of phpbb, though.
by C8H10N4O2
Wed Apr 17, 2002 1:27 am
Forum: Volume 4 (400-499)
Topic: 465 - Overflow
Replies: 104
Views: 24658

I hope you mean 4 "byte" int. 4 bit int is just silly:o)
by C8H10N4O2
Tue Apr 16, 2002 9:46 pm
Forum: Java
Topic: Compile Error
Replies: 1
Views: 2190

Compile Error

What does this mean?

Code: Select all

00824009_24.java:38: '{' expected.
stdin
^
gcj: Internal compiler error: program jc1 got fatal signal 11
 
--
by C8H10N4O2
Tue Apr 16, 2002 9:31 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 32653

401 - Palindromes

I am getting WA. This is my first attempt at JAVA. Can someone tell me how to fix it and get AC? I am trying to learn JAVA. I suspect it is an input problem. [java] import java.io.*; import java.util.*; class Main { static boolean isPalindrome(String Phrase) { int i; for(i=0;i<Phrase.length();i++) {...
by C8H10N4O2
Mon Apr 15, 2002 6:23 am
Forum: Java
Topic: JAVA Library
Replies: 3
Views: 2434

You mentioned BigInt on the ICPC. That is exactly what I am trying to find out. Should I get a few years of JAVA experience before I go to the ICPC? :wink:
by C8H10N4O2
Mon Apr 15, 2002 2:07 am
Forum: Other words
Topic: Syntax Highlighting!
Replies: 3
Views: 1903

Thank you! I really appreciate it. I am surprised at the speed of the response. I expected it to be implemented in weeks, not hours. You guys are good :D :D :D :D :D
by C8H10N4O2
Sun Apr 14, 2002 8:16 pm
Forum: Volume 1 (100-199)
Topic: 173 - Network Wars
Replies: 29
Views: 2815

Changed it to:

Code: Select all

		sscanf(B,"%[^.]%*[.] %c %c",S,&SP,&SL);
Still WA...hmmm
by C8H10N4O2
Sun Apr 14, 2002 7:46 pm
Forum: Volume 1 (100-199)
Topic: 173 - Network Wars
Replies: 29
Views: 2815

This is starting to really bug me now. I just fixed my code so that it works for all the cases on this thread and still WA:( #include <cstdio> #include <vector> #include <cstring> #include <cctype> using namespace std; vector<vector<int> > W; vector<int> PV,LV; int P,L; void pmove() { int i,j,k,X; X...
by C8H10N4O2
Sun Apr 14, 2002 6:46 pm
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 7524

If this were a math class, Diophantine equations would be the way to go. However, you are trying to solve a computing problem. When you brute force the Diophantine equation, you turn an elegant solution into a VERY VERY ugly one. Instead, try brute forcing the problem. The problem asks a very simple...
by C8H10N4O2
Sun Apr 14, 2002 6:34 pm
Forum: Volume 1 (100-199)
Topic: 176 - City Navigation
Replies: 20
Views: 7968

What it means is: You CAN turn left but only at intersections. You CANNOT turn left into a driveway and you CANNOT turn left out of a driveway. The houses on the intersections have two driveways, one on each street of the intersection (as shown in diagram: 01&99, 98&99, 00&01, 00&90). Hopefully, tha...
by C8H10N4O2
Sun Apr 14, 2002 6:30 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 14796

An 3D implementation of Floyd-Warshall should also work:o)
by C8H10N4O2
Sun Apr 14, 2002 6:29 pm
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 13227

Taken from: http://astronomy.swin.edu.au/~pbourke/geometry/insidepoly/ Here is a clean implementation: #define MIN(x,y) (x < y ? x : y) #define MAX(x,y) (x > y ? x : y) #define INSIDE 0 #define OUTSIDE 1 typedef struct { double x,y; } Point; int InsidePolygon(Point *polygon,int N,Point p) { int coun...
by C8H10N4O2
Sun Apr 14, 2002 6:23 pm
Forum: Volume 1 (100-199)
Topic: 173 - Network Wars
Replies: 29
Views: 2815

::OLD CODE ERASED::
by C8H10N4O2
Sun Apr 14, 2002 5:52 pm
Forum: Volume 1 (100-199)
Topic: 173 - Network Wars
Replies: 29
Views: 2815

No, I see your point now. Let me go give it another try. I thought the both annihilated message overwrote the others.

Go to advanced search