Search found 78 matches

by raj
Sun Feb 09, 2014 12:05 am
Forum: Volume 113 (11300-11399)
Topic: 11377 - Airport Setup
Replies: 24
Views: 11813

Re: 11377 - Airport Setup

//Accepted
by raj
Wed Nov 20, 2013 5:07 am
Forum: Volume 112 (11200-11299)
Topic: 11280 - Flying to Fredericton
Replies: 43
Views: 16530

Wrong Answer: 11280 - Flying to Fredericton

Still Wrong Answer... :( What to do ?? :( :( import java.io.*; import java.util.*; class IntegerPair4 implements Comparable{ int node; int weight; @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false...
by raj
Tue Nov 19, 2013 12:31 am
Forum: Volume 112 (11200-11299)
Topic: 11280 - Flying to Fredericton
Replies: 43
Views: 16530

Wrong Answer: 11280 - Flying to Fredericton

Anyone please help me Why I am getting Wrong Answer :( :( import java.io.*; import java.util.*; class IntegerPair4 implements Comparable{ int node; int weight; @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass())...
by raj
Thu Nov 14, 2013 2:56 am
Forum: Volume 119 (11900-11999)
Topic: 11947 - Cancer or Scorpio
Replies: 18
Views: 4184

Wrong Answer: 11947 - Cancer or Scorpio

I cant see the bug can anyone please help me... :( :( :( import java.io.*; import java.util.*; public class Main{ public static GregorianCalendar Scor1 = new GregorianCalendar(); public static GregorianCalendar Scor2 = new GregorianCalendar(); public static GregorianCalendar aq1 = new GregorianCalen...
by raj
Wed Oct 30, 2013 1:43 am
Forum: Volume 107 (10700-10799)
Topic: 10720 - Graph Construction
Replies: 49
Views: 30633

Wrong Answer: 10720 - Graph Construction

Thanks sir for finding the mistake :) but still i am getting Wrong Answer :cry:
by raj
Mon Oct 28, 2013 10:19 pm
Forum: Volume 125 (12500-12599)
Topic: 12545 - Bits Equalizer
Replies: 4
Views: 1600

Re: 12545 - Bits Equalizer

My Accepted codes Inputs Outputs for better help!!! :) :) Sample Input:: 200 01?0001?0??1100000000110???1011010111101010?100?11??010?1???0000000110???1010010??00 101010000011110111111110000100111101110110010111101110000100010100010110101100111100 ?101??0101?1000??????10011????0?100111?10?01 11011000...
by raj
Sat Oct 19, 2013 9:23 pm
Forum: Volume 119 (11900-11999)
Topic: 11902 - Dominator
Replies: 20
Views: 9127

Time limit exceed: 11902 - dominator

Code: Select all

Accepted
by raj
Sun Oct 06, 2013 11:18 pm
Forum: Volume 126 (12600-12699)
Topic: 12619 - Just Make A Wish
Replies: 5
Views: 2329

Wrong Answer:: 12619 - Just Make A Wish

Deleted
by raj
Sat Sep 28, 2013 7:38 pm
Forum: Volume 119 (11900-11999)
Topic: 11991 - Easy Problem from Rujia Liu?
Replies: 32
Views: 8910

Re: 11991 Time Limit Exceeded

facing Time Limit Exceed Need Help :( :( :( import java.io.*; import java.util.*; class IntegerPairr implements Comparable { Integer _first, _second; public IntegerPairr(Integer f, Integer s) { _first = f; _second = s; } public int compareTo(Object o) { if (this.first() != ((IntegerPairr )o).first()...
by raj
Thu Sep 26, 2013 12:37 am
Forum: Volume 107 (10700-10799)
Topic: 10720 - Graph Construction
Replies: 49
Views: 30633

Re: 10720 - Graph Construction

Need Help I am getting "Wrong Answer"..... :cry: :cry: I applied Erdos-Gallis Theorem.. import java.io.*; import java.util.*; class IntegerPair implements Comparable { Integer _first; public IntegerPair(Integer f) { _first = f; } public int compareTo(Object o) { return ((IntegerPair )o).first() - th...
by raj
Wed Sep 25, 2013 7:39 am
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 22578

Re: Got WA at UVa 11371 - Number Theory for Newbies

Input 191, correct output:911 - 119 = 792 = 9 * 88 Is the correct answer can also be "911 - 191 = 720 = 9 * 80" ?? because the question says about permutation... I dont know why i am getting "Wrong Answer"... Need help please :( :( Heres is my code.. import java.io.*; import java.util.*; public cla...
by raj
Mon Sep 23, 2013 8:58 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 18914

Re: 382 - Perfection - Run Time Error

I am getting "Run time error" Need help!!! :( :( :( import java.io.*; import java.util.*; public class Main{ public static long sumDiv(long N) { long sqrt = (long)Math.sqrt(N); long sum = 0; for(long c = 1;c<=sqrt;c++){ if(N%c==0){ long d = N/c; if(c==d){ sum = sum + c; break; } sum = sum + c + d; }...
by raj
Sat Sep 21, 2013 8:17 pm
Forum: Volume 105 (10500-10599)
Topic: 10539 - Almost Prime Numbers
Replies: 44
Views: 24342

Re: 10539 - Almost Prime Numbers

Code: Select all

Accepted
by raj
Sat Sep 21, 2013 12:06 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 36713

Re: 583 - Prime Factors

I need a suggestion!!!!!!!!!! i am a java coder for that i cant compare my run time with other coders :( because most of here are from c++ so can i see only java coders run time for a specific problem !!!! if i can then how ...?? :( for example in this problem my java accepted run time is 1.089 sec ...
by raj
Fri Sep 20, 2013 5:57 pm
Forum: Volume 104 (10400-10499)
Topic: 10407 - Simple division
Replies: 34
Views: 11738

Re: 10407 - Simple division

I am facing problem the way of solving it... Somebody solve by taking difference and then gcd all the numbers Somebody take the minimum then subtract all the numbers with the minimum and then gcd the numbers but i want to know how it solves the problem??? please someone explain me if you have time??...

Go to advanced search