Search found 2 matches

by morkoh
Mon Oct 27, 2014 10:09 pm
Forum: Volume 107 (10700-10799)
Topic: 10730 - Antiarithmetic?
Replies: 21
Views: 11257

Re: 10730 - Antiarithmetic?

Why is it enough to check only rising arithmetic sequences?
My code passes the judge, but it outputs a wrong answer for
5: 0 4 3 2 1 --> "yes"
5: 2 4 3 1 0 --> "yes"
when both should be "no", first one has (4,3,2,1) second (2,1,0).

The code which checks both rising and falling arithmetic sequences ...
by morkoh
Sat Oct 18, 2014 7:28 pm
Forum: Volume 9 (900-999)
Topic: 957 - Popes
Replies: 15
Views: 10819

Re:

Try the cases.

Input:
11
20
20 numbers given in sample :)
12
20
20 numbers given in sample :)
17
20
20 numbers given in sample :)
Output:
11 12 21
11 12 21
13 6 21
Hope the weird input set helps. :wink: .

Could someone tell me how is this correct?
From years 11-21 we had 12 popes.
There ...

Go to advanced search