Search found 26 matches

by SyFyKid
Thu May 31, 2012 1:27 pm
Forum: Bugs and suggestions
Topic: Bug in resulting system verdict.
Replies: 1
Views: 2057

Bug in resulting system verdict.

I have send many codes for http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=&problem=400&mosmsg=Submission+received+with+ID+10174951 problem... Why I have WA instead of RE ? import java.io.*; //import java.math.BigInteger; import jav...
by SyFyKid
Thu May 31, 2012 1:24 pm
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 20280

Re: 11462 - Ages Sort

you dont need sort, erase and all that stuff... :D How to output this code....... cause i got PE... plz could any one help me... #include <algorithm> #include <iostream> #include <vector> #include <cstring> using namespace std; int main(){ vector<int> mvector; vector<int>::iterator it; unsigned int ...
by SyFyKid
Wed May 30, 2012 5:38 pm
Forum: Volume 115 (11500-11599)
Topic: 11503 - Virtual Friends
Replies: 49
Views: 19441

Re: 11503 - Virtual Friends

vahid sanei wrote:I got Acc in 1.570 sec :D
heh... c++ and 1.570 ?
I've got AC with java in a quite nice time... but it sure can be more optimized. :D
11503 - Virtual Friends Accepted Java 1.124 0.104 161
by SyFyKid
Tue May 29, 2012 4:55 pm
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 48999

Re: 11340 - Newspaper

hello! hmmm... you can write much shorter long left = sum % 100; DecimalFormat formatter = new DecimalFormat(); formatter.setCurrency(Currency.getInstance(Locale.US)); if (left > 9) { formatter.setMaximumFractionDigits(2); formatter.setMinimumFractionDigits(2); } else { formatter.setMaximumFractionD...
by SyFyKid
Thu May 24, 2012 9:33 am
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 20280

Re: 11462 - Ages Sort

I am not talking about C/C++, I am talking about JAVA and better I/O methods.
brianfry713 wrote:C/C++ is faster than JAVA.
by SyFyKid
Wed May 23, 2012 9:34 pm
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 20280

Re: 11462 - Ages Sort

Solved this problem in JAVA in 1.848 How to solve it faster? import java.awt.event.PaintEvent; import java.io.*; import java.math.BigInteger; import java.util.*; import java.awt.geom.*; import java.util.regex.*; import java.util.StringTokenizer; public class Main implements Runnable { void solve() {...
by SyFyKid
Fri May 11, 2012 6:57 pm
Forum: Volume 111 (11100-11199)
Topic: 11110 - Equidivisions
Replies: 33
Views: 19861

Re: 11110 - Equidivision

To those, who didnt solve this problem: DONT READ THIS THREAD :lol: after getting 5-7 WAs I found bug in my dfs , but before that I have read this thread and rewrote my program for about 4-6 times :evil: This test should help: 3 1 1 1 2 1 3 2 1 3 1 2 2 output: wrong thats all... no extra spaces... n...
by SyFyKid
Wed May 09, 2012 10:50 am
Forum: Off topic (General chit-chat)
Topic: Where to get "Competitive Programming 2" ?
Replies: 3
Views: 31846

Re: Where to get "Competitive Programming 2" ?

I saw this link... but the problem is I dont have credit card to pay on lulu.com, may be there are other ways to buy this book?
by SyFyKid
Tue May 08, 2012 12:11 pm
Forum: Bugs and suggestions
Topic: Error while uploading new image (photo)
Replies: 1
Views: 3697

Error while uploading new image (photo)

Screenshot:
Image
by SyFyKid
Tue May 08, 2012 11:43 am
Forum: Bugs and suggestions
Topic: ONLINE_JUDGE is not defined when using JAVA
Replies: 1
Views: 1879

ONLINE_JUDGE is not defined when using JAVA

I have this in my JAVA code: console(System.getProperty("ONLINE_JUDGE") != null); but it always gets WA. when I change to: console(true); it gets AC. Found this bug while solving this problem ( here is my code for checking). Statement from this page: In order to help some people, the Onlin...
by SyFyKid
Tue May 08, 2012 9:51 am
Forum: Off topic (General chit-chat)
Topic: Where to get "Competitive Programming 2" ?
Replies: 3
Views: 31846

Where to get "Competitive Programming 2" ?

Hello!
Is this book includes theory also?
And if yes, where I can get this book? (I am from Russia)

Thanks.

Go to advanced search