Search found 136 matches

by jan_holmes
Mon Jan 01, 2007 2:51 pm
Forum: Java
Topic: JAVA-Difficulties We Face
Replies: 31
Views: 26301

Is BigInteger class provided here ?
by jan_holmes
Mon Jan 01, 2007 12:53 pm
Forum: Volume 111 (11100-11199)
Topic: 11150 - Cola
Replies: 43
Views: 22692

Posted: Mon Jan 01, 2007 7:18 am Post subject: -------------------------------------------------------------------------------- During the contest a contestant (I will not say who : ) makes the following clarification request: Quote: Can we borrow more than 1 bottle at a time? And is it true that w...
by jan_holmes
Sun Dec 31, 2006 4:52 am
Forum: Volume 111 (11100-11199)
Topic: 11151 - Longest Palindrome
Replies: 65
Views: 32825

Try this input :

Code: Select all


1
qweqweqwedadqweqweqwe

I think the output should be :

Code: Select all


3

CMIW...
by jan_holmes
Sat Dec 30, 2006 9:41 pm
Forum: Volume 111 (11100-11199)
Topic: 11152 - Colourful Flowers
Replies: 45
Views: 21816

I think it depends how we implement this integer to the program...

Code: Select all


int n = 5;
double ret = 0;
ret = n/2;

is different with

Code: Select all


int n = 5;
double ret = 0;
ret = n/2.0;

Sometimes we forgot with this and makes our program totally wrong... (It also happened to me many times...) :oops:
by jan_holmes
Sat Dec 30, 2006 9:24 pm
Forum: Volume 111 (11100-11199)
Topic: 11150 - Cola
Replies: 43
Views: 22692

Here is my output :

Code: Select all

1
3
4
6
7
9
10
12
13
15
22
30
45
60
75
150
225
285
298
300
by jan_holmes
Sun Dec 03, 2006 6:33 pm
Forum: C++
Topic: Need a Help in Arrays
Replies: 4
Views: 1984

If you want to make your program ends once it is done, just use :

Code: Select all

while (cin >> n) {
//process
}
or

Code: Select all

while (scanf("%d",&n) != EOF) {
//process
}
Hope it helps :wink:
by jan_holmes
Sat Dec 02, 2006 5:41 pm
Forum: C++
Topic: hash_map<string,int>
Replies: 3
Views: 3836

thx for the explanation !!! :D
by jan_holmes
Sat Dec 02, 2006 5:39 pm
Forum: Volume 9 (900-999)
Topic: 902 - Password Search
Replies: 68
Views: 31886

I got WA with this code, please help : import java.util.*; import java.io.*; //WA... // UVA problem 902 class Main { public static void main (String[] args ) { Main m = new Main(); m.process(); } static void process() { String input = ""; StringTokenizer token; int n; String w = ""; int ret = 0; Str...
by jan_holmes
Sat Dec 02, 2006 1:57 pm
Forum: C++
Topic: hash_map<string,int>
Replies: 3
Views: 3836

hash_map<string,int>

I'm trying to solve a problem by implementing hash_map<string,int> stl in my program. But I got Compile Error many times. This is the header that might result that compile error : #include <iostream> #include <bitset> #include <algorithm> #include <cstdio> #include <cstdlib> #include <string> #inclu...
by jan_holmes
Sat Nov 25, 2006 10:07 pm
Forum: Volume 110 (11000-11099)
Topic: 11086 - Composite Prime
Replies: 33
Views: 17679

EDIT : ACed.... :)
by jan_holmes
Wed Nov 01, 2006 8:16 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25636

thanks tan_Yui, I'll try to fix my code... :D
by jan_holmes
Sat Oct 21, 2006 2:51 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25636

got WA...

I got WA with this code, I have checked all the testcases posted in the forum... please help and give me other testcases... thx... #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> #include <string> #include <iostream> //WA... using namespace std; int ma...
by jan_holmes
Wed Sep 13, 2006 8:13 pm
Forum: C
Topic: execution speed improving..
Replies: 5
Views: 5404

Thx for the addition, Moheeb... :)
by jan_holmes
Sun Sep 10, 2006 2:44 am
Forum: C++
Topic: starting with c++
Replies: 3
Views: 2313

There are a lot of websites give tutorial for c++. Just search it using google... For the compiler, you can use gcc/g++, for windows environment, you can use Dev C++ :)
by jan_holmes
Sun Sep 10, 2006 2:41 am
Forum: C
Topic: execution speed improving..
Replies: 5
Views: 5404

I think the one influenced the speed of the program is the algorithm you use to solve that. Except you use Java which needs longer run time than others.

Go to advanced search