Page 1 of 1
857 - Quantiser
Posted: Tue Oct 07, 2003 5:00 pm
by filipek
Hello,
if two events happen at the same time, in what order should they be printed?
Best regards,
Furippo
Re: 857 - Quantiser
Posted: Thu Oct 16, 2003 10:23 pm
by horape
filipek wrote:Hello,
if two events happen at the same time, in what order should they be printed?
It would seem from the sample that they should be printed in the same order that were in the input.
What happens with something like this:
Code: Select all
1 0 0 0 0
0 0 0 0 58
1 0 0 0 62
0 0 0 0 118
is the correct answer
or
Code: Select all
1 0 0 0 0
0 0 0 0 60
1 0 0 0 60
0 0 0 0 120
?
Saludos,
HoraPe
Posted: Fri Jul 29, 2005 5:01 am
by daveon
Hi,
Code: Select all
1 0 0 0 0
0 0 0 0 60
1 0 0 0 60
0 0 0 0 120
is what my AC code outputs.
857 Quantiser
Posted: Sun Mar 24, 2013 4:39 pm
by ccu499410030
Getting WAs...
It says in Output text description that:
First line: n
where n is the number of the messages of the quantised performance
Next n lines: code note m b t,
but the sample out separates every events with a blank line.
So,
What I wanna ask is what's the right form of output?
Please help me

Re: 857 Quantiser
Posted: Wed Mar 27, 2013 12:25 am
by brianfry713
There shouldn't be any blank lines in the output.
Re: 857 - Quantiser
Posted: Tue Dec 31, 2013 7:02 am
by uDebug
Here's some input / output I found useful while debugging / testing my program.
Input:
Code: Select all
10
1 35 23 1 6
1 52 23 1 17
1 43 23 2 10
0 52 23 3 15
0 35 23 3 252
1 35 23 4 473
1 33 23 4 478
0 43 24 1 11
0 33 24 1 12
0 35 24 2 3
10
1 42 14 1 55
1 38 14 1 126
0 42 14 1 177
1 42 14 1 230
1 51 14 1 241
0 42 14 1 248
1 42 14 1 352
0 38 14 1 356
0 51 14 1 472
0 42 14 2 244
14
0 33 13 4 478
1 33 14 1 12
1 33 23 4 478
0 33 24 1 12
1 33 33 4 478
0 33 34 1 12
1 42 14 1 15
0 42 17 1 15
1 42 19 4 450
1 42 20 1 6
1 43 19 4 450
0 43 20 1 6
0 44 19 4 450
1 44 20 1 6
-1
AC Output:
Code: Select all
8
1 35 23 1 0
1 52 23 1 0
1 43 23 2 0
0 52 23 3 0
0 35 23 3 240
1 35 24 1 0
0 43 24 1 0
0 35 24 2 0
8
1 42 14 1 60
1 38 14 1 120
0 42 14 1 180
1 51 14 1 240
1 42 14 1 360
0 38 14 1 360
0 51 14 2 0
0 42 14 2 240
8
0 33 14 1 0
1 33 14 1 0
1 42 14 1 0
0 42 17 1 0
1 42 20 1 0
1 42 20 1 0
0 44 20 1 0
1 44 20 1 0
-1
Note that there are
no additional spaces in the (input or) output between lines.