Search found 20 matches

by happyson10
Thu Jan 03, 2013 12:18 am
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 4451

Re: WA on 151

got it, thanks
by happyson10
Thu Jan 03, 2013 12:10 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 23086

Re: Presentation error on 160

oh, got it, thanks a lot
by happyson10
Sun Dec 23, 2012 9:01 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 23086

Presentation error on 160

The code was removed after getting AC
by happyson10
Sat Dec 22, 2012 4:59 am
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 4451

WA on 151

hi
I checked all cases from 13 to 99, all ouput are as same as http://uvatoolkit.com/problemssolve.php, while i got WA. please help !!

Attached my code:

Code: Select all

   the code was removed after getting AC
by happyson10
Wed Dec 19, 2012 3:12 am
Forum: Volume 1 (100-199)
Topic: 142 - Mouse Clicks
Replies: 58
Views: 5786

Re: Runtime error on 142

got it? thanks
by happyson10
Tue Dec 18, 2012 4:28 am
Forum: Volume 1 (100-199)
Topic: 142 - Mouse Clicks
Replies: 58
Views: 5786

Runtime error on 142

Got AC now
by happyson10
Fri Dec 14, 2012 2:07 am
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 11617

Re: WA in 143

thanks.
by happyson10
Thu Dec 13, 2012 3:46 am
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 11617

WA in 143

got AC now
by happyson10
Wed Nov 21, 2012 4:19 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 12380

Re: WA on #104

Yes, you are right, it's 4 transaction. I have got AC with Floyd Marshall algorithm. Anyone can help to see the following straight-forward approach. package com.uva.ArbitrageN104; import java.io.BufferedInputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; i...
by happyson10
Wed Nov 21, 2012 4:11 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 18141

Re: help about WA on #103

thanks i have found the issue and get AC, it's in "output part" import java.io.BufferedInputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; class Main { /* * Time O( rows* rows*cols ) Space O( ) */ public void stackBoxes(int[][] boxes,...
by happyson10
Mon Nov 19, 2012 7:41 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 18141

Re: help about WA on #103

i have fix this issue.
by happyson10
Sun Nov 18, 2012 8:39 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 18141

Re: help about WA on #103

in my code, i don't think box D = (2,6) nests in the box E = (3,6).
by happyson10
Sun Nov 18, 2012 8:32 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 18141

help about WA on #103

import java.io.BufferedInputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; import java.util.Stack; class Main { /* * Time O( ) Space O( ) */ public void stackBoxes(int[][] boxes, int rows) { //init HashMap<int[], Integer> hm = new Has...
by happyson10
Sat Nov 17, 2012 7:21 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 12380

Re: WA on #104

brianfry713 wrote:Input:

Code: Select all

4
1 0 0
1.005 0 0
0 0 0
0 0 0
AC output:

Code: Select all

1 2 1 2 1
From the requirement: If no profiting sequence of n or fewer transactions exists, then the line "no arbitrage sequence exists" should be printed.
so here it should print "no arbitrage sequence exists", am i right ?
by happyson10
Fri Nov 16, 2012 12:11 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 26210

Re: help on #105

thank you very much

it's ok after correct one line to.
if( (RESULT_X.get(xIndexRight) < rn && RESULT_Y.get(xIndexRight) >= hn) || ( RESULT_X.get(xIndexRight) == rn && RESULT_Y.get(xIndexRight - 1) >= hn ) )

Go to advanced search