Page 1 of 1
10728 - Help!
Posted: Sun Sep 26, 2004 11:41 am
by omnibus
Well I mean prob B and D.
http://acm.uva.es/contest/data/next/problemset/
B:
"Given two patterns, you are to find a phrase that matches both."
So how come for the input:
<a> b
c <a>
Output is
c b
D:
"is called antiarithmetic if there is no subsequence of it forming an arithmetic progression of length bigger than 2, i.e. there are no three indices 0 ? i < j < k < n such that (pi , pj , pk) forms an arithmetic progression."
For each test case output one line with yes or no stating whether the permutation is antiarithmetic or not.
So why is 6: 2 4 3 5 0 1 antiarithmetic ? (2,3,5) (4,3,0) (4,3,1) - that are arithmetic progressions so but there should be none in order for it to be antiarithmetic ....
Re: Waterloo Fall (10728 & 10730 ?)
Posted: Sun Sep 26, 2004 1:12 pm
by wiktor
Because the upper <a> is a different <a> than the lower <a>

. You have to divide "tags" into two sets: tags from the first line and tags from the second line.
D:
"is called antiarithmetic if there is no subsequence of it forming an arithmetic progression of length bigger than 2, i.e. there are no three indices 0 ≤ i < j < k < n such that (pi , pj , pk) forms an arithmetic progression."
For each test case output one line with yes or no stating whether the permutation is antiarithmetic or not.
So why is 6: 2 4 3 5 0 1 antiarithmetic ? (2,3,5) (4,3,0) (4,3,1) - that are arithmetic progressions so but there should be none in order for it to be antiarithmetic ....
AFAIR the arithmetic progression is a squence a, a+b, a+2b ... You are probably talking about increasing/decreasing sequence.
Posted: Sun Sep 26, 2004 1:24 pm
by omnibus
Thank you very much, indeed.
Posted: Tue Sep 28, 2004 10:27 am
by Eduard
Hello
I want to tell something about Problem B(10728).I got WA during the contest this problem because of just writing caps lock letter.
For example.
I was writing.
I just change
Ed to
e and got AC.
Be carefull with this.
Posted: Tue Sep 28, 2004 5:39 pm
by ditrix
I just change Ed to e and got AC.
In others terms, it must be a letters from 'a' to 'z' in the words that you invent?
And what about the length of these words?
Posted: Tue Sep 28, 2004 6:24 pm
by Adrian Kuegel
Of course you should only replace placeholders with what is defined as word in this problem, and that is between one and 16 lowercase letters.
Posted: Tue Sep 28, 2004 6:31 pm
by Eduard
I just got AC writing 33 'e'-s.

Hm..
Posted: Wed Sep 29, 2004 3:25 pm
by sozu
Input
<a> <b>
<a> <a>
Ouput
1) abc abc
2) -
What is a right?
Posted: Wed Sep 29, 2004 5:33 pm
by Eduard
Hello sozu.
Input
Output
Code: Select all
1) abc abc
2) acc acc
3) aaa aaa
4) ppp ppp
5) g g
...
...
...
2 same words.
Each word containing only lower case letters.

^^
Posted: Fri Oct 01, 2004 2:32 am
by sozu
Eduard wrote:Hello sozu.
Input
Output
Code: Select all
1) abc abc
2) acc acc
3) aaa aaa
4) ppp ppp
5) g g
...
...
...
2 same words.
Each word containing only lower case letters.

Thank you.
I got a ACed.
