Search found 8 matches

by wyanez
Sun Jan 16, 2005 12:19 am
Forum: Java
Topic: Output Related... System.out.print vs System.out.println
Replies: 0
Views: 2463

Output Related... System.out.print vs System.out.println

What believe you... who are better and/or efficient (fast and
optimal):
System.out.println("result is" +r);
or
System.out.print("result is");
System.out.println(r);

I say it, because the compiler translates
System.out.println("result is" +r);
thus :
System.out.println(new StringBuffer ...
by wyanez
Tue Jul 13, 2004 8:02 pm
Forum: Java
Topic: Does Any one know that Java support BigInteger Class ?
Replies: 6
Views: 4163

BigInteger in Judge

The java.math.BigInteger not is supported in the Vallladolid Judge, but you can use the implementacion of BigInt in this link
http://online-judge.uva.es/board/viewto ... 7a75ae0c24

Good Luck !
by wyanez
Mon Jun 28, 2004 2:42 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 59909

I got accepted using BigInt (C and Java 1.332 seconds) with a array of 1050 digits!.

Good Luck!
by wyanez
Sat Jun 26, 2004 10:06 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 27294

You need to take into account the characters \n (13) and \r (10) (they do not in rank > = the 39 and > = 126 ).
this code it is sufficient:

[java] while((c=System.in.read())>=0){
if(c!=13 && c!=10) car=(char) (c-7);
else car=(char) c;
System.out.print (car);
}
[/java]

Good Luck!
by wyanez
Mon Mar 22, 2004 7:21 pm
Forum: Java
Topic: java.util.* sources
Replies: 1
Views: 2416

java.util sources

The java.util sources (and of all the classes) they are in
the file src.zip, which this in the folder where you installed the
JDK.
you can use java.util.Vector and java.util.HashTable...
:wink:
by wyanez
Wed Feb 11, 2004 2:30 am
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 12864

485 - Triangle Pascal Help... is BigNum?

This problem is of BigNum or it is possible to use long double or double?
Thank... :wink:

my code is WA:

[cpp]
// Problem 485 - Triangle Pascal
#include <iostream>
using namespace std;

#include <stdio.h>
#include <stdlib.h>

double ant[10000],actual[10000],*pact,*pant;
char *maxi ...
by wyanez
Mon Nov 24, 2003 7:57 pm
Forum: Volume 104 (10400-10499)
Topic: 10474 - Where is the Marble?
Replies: 50
Views: 28391

The problem can be in the search, these using "binary search" and this return the position of the element if it finds it in the center and not in the first occurrence.

Test this input:
3 1
2
2
2
2
0 0

Test using linear search, good luck! :wink:
by wyanez
Thu Nov 20, 2003 7:44 pm
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 47631

Union and Find

Test in google using like key words:
union find algorithm
I found alli good information

Go to advanced search