Search found 147 matches

by bugzpodder
Tue Oct 19, 2004 5:20 pm
Forum: Volume 107 (10700-10799)
Topic: 10744 - The Optimal Super-Highway
Replies: 29
Views: 14951

ax+by+c is signed distance. and i didnt use counting sort... i used what Larry did
by bugzpodder
Tue Oct 19, 2004 3:53 pm
Forum: Volume 107 (10700-10799)
Topic: 10744 - The Optimal Super-Highway
Replies: 29
Views: 14951

I have a O(n) that runs in .293, My O(nlogn) runs in .110 for quick sort built in C++.

and distances to the line with rational slope from integer points are an integer multiple of an integer to the power of -1/2 :)
by bugzpodder
Sun Oct 03, 2004 8:07 pm
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 17525

there maybe some residue spaces/endlines in the end of input.
by bugzpodder
Sat Sep 11, 2004 1:33 am
Forum: Java
Topic: Premature end of .class file <stdin>.
Replies: 1
Views: 1665

hi, you may want to check the order of boundaries... the first may not be the smaller... anyways go search in the board in Volume I
by bugzpodder
Sat Sep 11, 2004 1:19 am
Forum: Volume 100 (10000-10099)
Topic: 10083 - Division
Replies: 12
Views: 6138

BigInteger (10083 Division)

Okay, I am asking about 10083 in UVA... This is a Waterloo local contest question, and their official solution is available on the web, making use of Java BigInt class. I implemented the exact same way as the official solution did, except using my own big Integer class written in C++ STL (strings) u...
by bugzpodder
Sat Sep 11, 2004 1:11 am
Forum: Algorithms
Topic: For someone who solved Character Recognition (USACO 5.5)
Replies: 1
Views: 1137

i might be able to help you... if you want me to debug your program then i probably cant help you because i really stink at debugging (i cant even debug my own) but i certainly can help you with some aspects of solution if you wish...
by bugzpodder
Tue Sep 07, 2004 5:17 pm
Forum: C
Topic: [Tip] Common C program compilation error mistake
Replies: 10
Views: 4533

hahaha Anupam... i have the same problem... but i think you can turn off some of those warnings... go check the options :D (i dont have VC++6 installed now so i cant tell you exactly how, sorry)
by bugzpodder
Mon Sep 06, 2004 7:39 pm
Forum: Other words
Topic: To all problem solvers from HKSAR
Replies: 5
Views: 1566

arent HK part of china? :)
by bugzpodder
Sat Sep 04, 2004 11:39 pm
Forum: C
Topic: [Tip] Common C program compilation error mistake
Replies: 10
Views: 4533

meh... also i found out the compiler complains about "true" and "false"... use int instead... ps if anyone else have tips please add to this thread
by bugzpodder
Fri Sep 03, 2004 10:52 pm
Forum: C
Topic: [Tip] Common C program compilation error mistake
Replies: 10
Views: 4533

ahhh thanks anupam!! its finally working! although the C++ code is actually faster than the C code :o
by bugzpodder
Fri Sep 03, 2004 10:34 pm
Forum: Other words
Topic: bug in E-board??
Replies: 0
Views: 505

bug in E-board??

hi, if you do a search with keyword 453 you wont get any results
but there are in fact many threads about 453, for example
http://online-judge.uva.es/board/viewtopic.php?t=563
by bugzpodder
Fri Sep 03, 2004 10:27 pm
Forum: C
Topic: [Tip] Common C program compilation error mistake
Replies: 10
Views: 4533

hi anupam i used online submission... also whats wrong with this? [c] char f[11]; int putint(int k){ if (k==0) {puts("0"); return 0;} f[10]=0; int i=0; for (i=9;k>0;i--){ f =k%10+'0'; k/=10; } puts(&f[i+1]); return 0; } [/c] i tried submitting line by line, and i got compile error when i tries somet...
by bugzpodder
Fri Sep 03, 2004 10:02 pm
Forum: C
Topic: [Tip] Common C program compilation error mistake
Replies: 10
Views: 4533

[Tip] Common C program compilation error mistake

ps if anyone else have tips about converting C++ programs to C please add to this thread i just figured out that if you put a comment in the first line of your submission when you are submitting in C, its a compile error!!!! [edit] the compiler seem to complain about // comments so try not to use it...
by bugzpodder
Sun Aug 22, 2004 5:17 am
Forum: Volume 102 (10200-10299)
Topic: 10212 - The Last Non-zero Digit.
Replies: 63
Views: 31450

so how does this solution work for finding the last non-zero digit of n!: [cpp]#include <stdio.h> #include <string.h> #define MAXN 1000 long a[MAXN], l; void a_div_5(void) { int i, plus; plus = 0; for (i=0; i<l; i++) { a = a *2+plus; plus = a /10; a = a %10; } if (plus>0) a[l++] = plus; l--; for (i=...
by bugzpodder
Sun Aug 22, 2004 3:54 am
Forum: Volume 106 (10600-10699)
Topic: 10644 - Floor Tiles
Replies: 25
Views: 11450

shuniu wrote:A faster way than drawing it on paper is to write a program to draw it.
this was the intent of the problem, to write code for something, and then not include it in the final solution :lol:

Go to advanced search