ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1889. Airport Announcements

what is the way to the solution?
Posted by TinyJanssen 16 Mar 2013 04:53
I tried the following:

For every recognized language find the minimum and the maximum possible lines.
Then find the maximum and minimum possible lines for all.
For minimum to maximum test if it divides N.
This solves the first four tests.

Is this the right way?
Re: what is the way to the solution?
Posted by Tamirlan 30 Jun 2016 22:45
Try to form k languages (or k groups) where k is divider of N. Mine is N^2 solution.
Re: what is the way to the solution?
Posted by zhiganov_v 28 Dec 2020 16:44
I go through the divisors of the number N and check if the array can be split into I phrases by the condition
Sorry for my English