Search found 139 matches
- Wed May 11, 2016 2:09 am
- Forum: Volume 2 (200-299)
- Topic: 232 - Crossword Answers
- Replies: 12
- Views: 7147
Re: 232 - Crossword Answers
The white squares of first row or column are "eligible". Problem statement is not so clear.
- Tue Apr 26, 2016 5:29 pm
- Forum: Volume 2 (200-299)
- Topic: 207 - PGA Tour Prize Money
- Replies: 30
- Views: 8165
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.
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.
- Tue Apr 26, 2016 5:28 pm
- Forum: Volume 2 (200-299)
- Topic: 208 - Firetruck
- Replies: 48
- Views: 17072
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 rout...
- Sat Apr 16, 2016 4:24 pm
- Forum: Volume 1 (100-199)
- Topic: 195 - Anagram
- Replies: 242
- Views: 32873
Re: 195 - Anagram
I think the answer is negative. You should code a custom compare function as parameter for sort.
- Wed Apr 06, 2016 11:46 am
- Forum: Volume 8 (800-899)
- Topic: 849 - Radar Tracking
- Replies: 10
- Views: 9533
Re: 849 - Radar Tracking
I got AC. yeah!
- Sun Mar 27, 2016 4:06 pm
- Forum: Volume 1 (100-199)
- Topic: 192 - Synchronous Design
- Replies: 11
- Views: 2670
Re: 192 - Synchronous Design
I found my mistake, DFS is not proper for finding cycle in directed graph.
- Sun Mar 27, 2016 4:17 am
- Forum: Volume 1 (100-199)
- Topic: 179 - Code Breaking
- Replies: 16
- Views: 7758
Re: 179 - Code Breaking
Thanks for your hints, I got AC.
- Fri Mar 25, 2016 6:01 pm
- Forum: Volume 1 (100-199)
- Topic: 192 - Synchronous Design
- Replies: 11
- Views: 2670
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 <...
- Thu Mar 24, 2016 5:17 pm
- Forum: Volume 1 (100-199)
- Topic: 194 - Triangle
- Replies: 22
- Views: 5139
Re: 194 - Triangle
I found my bug by myself.
- Wed Mar 23, 2016 5:34 pm
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 13808
Re: 202 - Repeating Decimals
Same to me.
- Wed Mar 16, 2016 11:52 am
- Forum: Volume 1 (100-199)
- Topic: 194 - Triangle
- Replies: 22
- Views: 5139
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...
- Mon Mar 07, 2016 3:49 am
- Forum: Volume 1 (100-199)
- Topic: 174 - Strategy
- Replies: 8
- Views: 4439
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...
- Sun Mar 06, 2016 10:24 am
- Forum: Bugs and suggestions
- Topic: Solution of UVa 171 on uDebug is WRONG
- Replies: 0
- Views: 2161
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&quo...
- Sun Mar 06, 2016 8:25 am
- Forum: Volume 1 (100-199)
- Topic: 171 - Car Trialling
- Replies: 19
- Views: 5329
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...
- Thu Feb 18, 2016 1:42 pm
- Forum: Volume 1 (100-199)
- Topic: 163 - City Directions
- Replies: 24
- Views: 11143
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:...