Search found 139 matches

by metaphysis
Wed May 11, 2016 2:09 am
Forum: Volume 2 (200-299)
Topic: 232 - Crossword Answers
Replies: 12
Views: 6683

Re: 232 - Crossword Answers

The white squares of first row or column are "eligible". Problem statement is not so clear.
by metaphysis
Tue Apr 26, 2016 5:29 pm
Forum: Volume 2 (200-299)
Topic: 207 - PGA Tour Prize Money
Replies: 30
Views: 6787

Re: 207 - PGA Tour Prize Money

I got AC, just for clarity:
You need't to print a space after scores which less than 100;
You need't to add an epsilon to output money, just using setprecision(2) is fine for C++ user.
The test data on UVa OJ cotains non tricky input, make sure your algorithm is right.
by metaphysis
Tue Apr 26, 2016 5:28 pm
Forum: Volume 2 (200-299)
Topic: 208 - Firetruck
Replies: 48
Views: 15230

Re: 208 - Firetruck

Five times of P.E. The sampe output in problem statement PDF is wrong. Correct ouput format(if the number of routes is 1, you should output "1 routes", after every streetcorner just print ONE space): CASE 1: 1 2 3 4 6 1 2 3 5 6 1 2 4 3 5 6 1 2 4 6 1 3 2 4 6 1 3 4 6 1 3 5 6 There are 7 routes from th...
by metaphysis
Sat Apr 16, 2016 4:24 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 26930

Re: 195 - Anagram

I think the answer is negative. You should code a custom compare function as parameter for sort.
by metaphysis
Wed Apr 06, 2016 11:46 am
Forum: Volume 8 (800-899)
Topic: 849 - Radar Tracking
Replies: 10
Views: 8979

Re: 849 - Radar Tracking

I got AC. yeah!
by metaphysis
Sun Mar 27, 2016 4:06 pm
Forum: Volume 1 (100-199)
Topic: 192 - Synchronous Design
Replies: 11
Views: 2252

Re: 192 - Synchronous Design

I found my mistake, DFS is not proper for finding cycle in directed graph.
by metaphysis
Sun Mar 27, 2016 4:17 am
Forum: Volume 1 (100-199)
Topic: 179 - Code Breaking
Replies: 16
Views: 7181

Re: 179 - Code Breaking

Thanks for your hints, I got AC.
by metaphysis
Fri Mar 25, 2016 6:01 pm
Forum: Volume 1 (100-199)
Topic: 192 - Synchronous Design
Replies: 11
Views: 2252

Re: 192 - Synchronous Design

WA, can anyone give me some critical test data? #include <iostream> #include <vector> #include <algorithm> using namespace std; const int INPUT = 0, OUTPUT = 1, SYN = 2, ASYN = 3; const string typeText = "iosa"; struct vertex { int index, delay, type; }; vector < vertex > verties; vector < int > par...
by metaphysis
Thu Mar 24, 2016 5:17 pm
Forum: Volume 1 (100-199)
Topic: 194 - Triangle
Replies: 22
Views: 4531

Re: 194 - Triangle

I found my bug by myself.
by metaphysis
Wed Mar 23, 2016 5:34 pm
Forum: Volume 2 (200-299)
Topic: 202 - Repeating Decimals
Replies: 82
Views: 11035

Re: 202 - Repeating Decimals

Same to me.
by metaphysis
Wed Mar 16, 2016 11:52 am
Forum: Volume 1 (100-199)
Topic: 194 - Triangle
Replies: 22
Views: 4531

Re: 194 - Triangle

WA again and again. Could anyone point out my error? #include <iostream> #include <iomanip> #include <map> #include <cmath> using namespace std; const double EPSILON = 1E-7; const double PI = 3.14159265358979323846; const double HALF_PI = PI / 2.0; map < char, double > paras; map < char, bool > defi...
by metaphysis
Mon Mar 07, 2016 3:49 am
Forum: Volume 1 (100-199)
Topic: 174 - Strategy
Replies: 8
Views: 4138

Re: 174 - Strategy

mf is right, the operators are right-associative. After several failed attempts, I got AC, and for clarity, "play each strategy against each other strategy 10 times" means: a b c 1: clear the memory, a plays with b 10 times, clear the memory, a plays with c 10 times, output the scores of a; 2: clear...
by metaphysis
Sun Mar 06, 2016 10:24 am
Forum: Bugs and suggestions
Topic: Solution of UVa 171 on uDebug is WRONG
Replies: 0
Views: 1856

Solution of UVa 171 on uDebug is WRONG

The solution of UVa 171 on uDebug is WRONG. For test data given by DIR EN GREY in thread: https://uva.onlinejudge.org/board/viewtopic.php?f=1&t=2711, the output of soludtion is different from the right output in thread. At first, I tried to solve this problem according the "right answer" on uDebug, ...
by metaphysis
Sun Mar 06, 2016 8:25 am
Forum: Volume 1 (100-199)
Topic: 171 - Car Trialling
Replies: 19
Views: 4736

Re: THANK YOU, DIR EN GREY!

nooooo!!! I found my mistake... I'm stupid... and get accept. I got wa many times, and I made many test cases. I'll show that here, I wish these help someone... last case is very critical data for my code... jesus... good luck I spent some days on this problem but always WA. At first, I compared ou...
by metaphysis
Thu Feb 18, 2016 1:42 pm
Forum: Volume 1 (100-199)
Topic: 163 - City Directions
Replies: 24
Views: 10429

Re: 163 - City Directions

I'm confused with this problem completely, according to Per, you may turn any direction as you like at nine intersections, leave the througways by truning left(sharp left in the case of boulevards), but according to uDebug(https://www.udebug.com/UVa/163, Solution by brianfry713): test case 1: INPUT:...

Go to advanced search