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 1219. Symbolic Sequence

Wrong test
Posted by Alexandr 11 Jun 2014 05:24
This solution is OK. But it not satisfy the restrictions.
Your tests are too weak.

#include <iostream>
int main(int argc, char* argv[])
{
    int i= 0;
    for (i = 0; i < 1000000; i++)
            {
                printf("%c", rand()%26 + 'a');
            }
    return 0;
}
Re: Wrong test
Posted by Talantsev Yegor [Intouchables] 30 Jul 2014 12:13
I think that you miss conditions:
Every possible subsequence with two letters length occurs not more than 2 000 times;
Every possible subsequence with three letters length occurs not more than 100 times;
Re: Wrong test
Posted by Hristo Nikolaev (B&W) 4 Jan 2023 00:21
I think with just a few tweaks, and "some" luck you can get AC on 1589.