Блог пользователя AlFlen

Автор AlFlen, 6 лет назад, По-русски

The future is bulletproof
The aftermath is secondary
It's time to do it now and do it loud!

Привет, Codeforces!

Мы с 74TrAkToR рады пригласить вас на наш совместный Codeforces Round 705 (Div. 2), который пройдет в 06.03.2021 17:05 (Московское время). Обратите внимание на необычное время проведения раунда. Он будет рейтинговым для всех участников, чей рейтинг ниже 2100.

Мы уже проводили раунд и провели работу над ошибками:

  • условия будут короткие и понятные
  • мы постарались сделать претесты еще сильнее
  • разбор будет опубликован сразу же после раунда

Мы хотим поблагодарить всех, кто оказал нам бесценную помощь в подготовке этого раунда:

Вам будет предложено 6 задач. У вас будет 2 часа 15 минут на их решение.

UPD: Разбалловка $$$750-1250-1750-2250-2750-3250$$$.

UPD2: Разбор

UPD3: Поздравляем победителей!

Div. 2:

  1. sawa855

  2. A05

  3. DeIeted

  4. rainboy

  5. scli_scj

Div. 1 + Div. 2:

  1. neal

  2. BigBag

  3. fastmath

  4. Sugar_fan

  5. tute7627

Желаем всем удачи!

  • Проголосовать: нравится
  • +679
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +98 Проголосовать: не нравится

We will miss the main ponies from My Little Pony in this round. :(

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -63 Проголосовать: не нравится

.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +41 Проголосовать: не нравится

the statemnts will be short and clear

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

I think everyone love this line : the statements will be short and clear

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -15 Проголосовать: не нравится

this contest totally killing my rating :v

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +30 Проголосовать: не нравится

Finally became Specialist after a continuous +ve delta change in past 9 contest XD

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

the statements will be short and clear means challenging.

I like it.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

statements will be short and clear, strong pretests, and also hoping for nice problems.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

Liked the intro :'3

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -81 Проголосовать: не нравится

Is it rated?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

Hope I can reach 1300 in this round :)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +52 Проголосовать: не нравится

From the past 5 contests, I've been losing ratings consistently :/ I hope I'll break this streak in this contest :P. Wish me luck :)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится
  • Anton for not rejecting the problems.
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

74TrAkToR congrats on the first playoff win, well done!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

I hope this time Question B is better than last contest

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

As a participant, wish you all satisfying rating changes :)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +46 Проголосовать: не нравится
while(1) cout << "Na ";
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

I believe that you've got the key to hold a nice contest and this time I'll enjoy the problems!

Wait the coordinator is not Anton

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

The time of the competition is unusual, please pay attention :>

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I like the "the statements will be short and clear" part.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

It feels awkward when you don't see any comment with As a tester.....

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +23 Проголосовать: не нравится

2 Div1's after this contest are ruining my chances of becoming an Expert.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -19 Проголосовать: не нравится

Я считаю, что надо объявить бойкот и не писать данный раунд, поскольку многоуважаемые его авторы, Екатерина Шиляева, 80-ый призер Всероссийской олимпиады школьников по информатике 2019, а также Евгений Карпович, 95-ый призер той же олимпиады(да еще и 10-ый класс), имея БВИ, наглым образом позволили себе принять участие во Всесибирской олимпиаде школьников по информатике 2021 и забрать два диплома 1 степени, которая является перечневкой и служит исключительно 11-классникам, помогая им поступить в ВУЗ. Иными словами, теперь два человека пойдут не в институт, а сами понимаете куда, потому что кому-то очень захотелось взять лишний диплом.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

My 69th contest. Hope to reach current year in rating

»
6 лет назад, скрыть # |
← Rev. 4  
Проголосовать: нравится +11 Проголосовать: не нравится

It will be very good if the statements of problems will not contain any legends, stories or histories. And then the problems will be easy to understand.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

This is going to be my 50th contest and I am still stuck on grey. Someone, please guide me.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +18 Проголосовать: не нравится

    -> I can see you are pretty comfortable with problem A , So I will advise you to up solve problem B of every div 2 round.

    -> practice daily , I can see you are not regular in doing problems , its fine even if you do just 2 or 3 on a busy day but do it regularly.

    -> Whenever you come across a new concept (eg : prefix sum, binary search) learn that concept and solve few problems on that.

    -> solve problems slightly higher than your rating , for you case solve up to 1400. and solve problems with different tags not just brute force and constructive.

    May this helps

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится
Spoiler
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

just wanna tell u, it inspired me !

`The future is bulletproof`
`The aftermath is secondary`
`It's time to do it now and do it loud!`
»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hope to become cyan in this contest.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

the statements will be short and clear

ONE LOVE

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +23 Проголосовать: не нравится

Little suggestion: the competition announcement should include a link to the competition: Codeforces Round 705 (Div. 2) but not Codeforces Round 366 (Div. 2)
UPD: Have been fixed :)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

All participants get happy when they read this: The statements will be short and clear.

It is very fun. Thanks AlFlen and 74TrAkToR for this round!!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Note: unusual time it will start at 14:05 not 14:35 UTC

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +38 Проголосовать: не нравится

74TrAkToR lost our respect

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

As a...

Hope strong pretests XD

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Hoping that this contest will make me pupil. See my rating :))

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -50 Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +32 Проголосовать: не нравится

This scoring distribution has partial Div1 vibes

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The scoring distribution is quite different from normal div.2!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +33 Проголосовать: не нравится

Div 1.5 coming!!!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

everything harder than usual forces?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

So i have reached college and this will be my first contest from my hostel. Me and my 4 friends are also participating today alongside me. Super Excited for this round and Good Luck to all ..

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The time(2h15min) maybe means the contest is a hard one. I will try my best to solve it. Good luck to me, and to everyone.

Stay Cheeki Breeki!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

"the statements will be short and clear"...meanwhile problem B: Am I joke?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +38 Проголосовать: не нравится

I swear I will throw all digital clocks far away from my house after this round.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -22 Проголосовать: не нравится

In the 3rd test case of problem B. Why is 52:26 invalid

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Are you high while making the question??

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

I've never seen a contest so full of cancer before

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Submit Code button not working.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +25 Проголосовать: не нравится

Dear antontrygubO_o please coordinate every codeforces round and never let this kind of shit pass,taking part in it is just a waste of time!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

toxic comments should be removed just make constructive criticism or don't I don't see it as a bad round A was ok B wasn't easy to code and C was hard to think about so each problem from A B C makes you try to improve in something which is good if a problem looks bad for you that doesn't mean it's bad others might like the problem you hated and might hate a problem you like

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Test Case 3 of D is killing me!!!!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Help me with D once the contest's over.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +56 Проголосовать: не нравится

The worst B I've ever seen...

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +117 Проголосовать: не нравится

Disclaimer: I realize the authors work hard to set problems and I appreciate that, the following are just my thoughts about problems like this contest's Div2B in general.

Just why... it takes barely any time to arrive at the solution for problem B, but then becomes a really bad implementation problem if you're not being careful.

I thought the majority of the community agreed that these types of problems weren't interesting at all.

I mean what is the purpose of problem B in a Div2? Is it just there to ensure that people new to competitive coding will have something to spend the contest implementing?

In my opinion B should be an elegant idea that it is possible for newer participants to solve after thinking about it for a while. It should be something that makes them satisfied (or even better, amazed) when they solve it (or read the editorial). Remember, this is the problem that will make the biggest impression on a lot of people who are fairly new to competitive coding.

I get it, original interesting ideas that are easy can be difficult to think of, but at least try to come up with something slightly interesting that isn't an utter and complete pain to code. For example — problem A, its a fairly nice idea that isn't too tough.

People rant (or joke) about antontrygubO_o rejecting a ton of problems, but frankly I think that's a good thing if it is to remove problems like this one.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +13 Проголосовать: не нравится

    I totally agree with you, the best part of codeforces rounds are logic/ideas behind each and every problem there in contest. But if we see problems like B then I don't think people would appreciate the round, and it may be uninteresting for many participants.

    Even a single problem like B can spoil complete round.

  • »
    »
    6 лет назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится +13 Проголосовать: не нравится

    Exactly, problem B was quite dumb as it was just brainless implementation

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +33 Проголосовать: не нравится

    I agree with everything you said. Problem B was a bad problem even for Div2 (which is usually not the best in terms of beauty and originality).

    However, I want to put in a good word for the authors. Problem B wasn't all that implementation-heavy (I mean, I've seen worse). Part -- or should I say, the entirety -- of the challenge to overcome was to find a sensible way to translate the idea into code, which wouldn't lead to a complete mess. And if done right, the implementation is actually quite short.

    I've seen this same theme reappear in problem D. One could, in theory, solve it by means of segment trees (which, at least in my case, is the first thing that comes to mind), but that solution is hell to implement. Here, again, the challenge was coming up with a good approach. This one I enjoyed solving.

    Of course, I'm not saying that B and D are on the same level, not even close. Problems like B should be eradicated, period. I'm just saying that the implementation alone is not bad enough to justify such a negative feedback.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +9 Проголосовать: не нравится

    Todays B and C would have perfectly fit in educational contest, since there are often implementation heavy problems which feel like school homework.

  • »
    »
    6 лет назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится +2 Проголосовать: не нравится

    I think these types of problems are good for A and B. Sure I didn't have to think theoretically at all, but I had to think more overall than normal trying to figure out how to implement, and had to think about actual coding in a coding contest rather than just basic mafs.

    As far as for beginners, who they're for, beginners often don't have basic implementation skills and when joining a programming contest with almost no programming for the problems they see would leave a bad impression for me, as I would not expect to feel like i'm in grade school math writing equations but actually programming.

    Also people who think these are "implementation heavy" surely have never done a single hard cp problem, or severely need to practice implementation...

    • »
      »
      »
      6 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      I think the term "implementation heavy" needs to be explained. I use it not to describe the difficulty of a problem, but the ratio of creativity and work to do to solve it.

      See Connect the Dots as an example for a simple implementation heavy problem.

      • »
        »
        »
        »
        6 лет назад, скрыть # ^ |
        ← Rev. 3  
        Проголосовать: нравится 0 Проголосовать: не нравится

        I believe a problem can need creativity and thinking for its implementation, which others either don't believe or, what I think is more likely, seem to purposely exclude that type of thinking ability. JOI Port Facility is a great example where solving on paper is not too hard but figuring out how to execute such an idea takes work.

        Also, I believe when people call such problems as you gave for an example a "implementation heavy" problem, they just have very poor implementations that can be greatly condensed. My implementation for that problem would be likely around ~50 lines including template. Is that still a high ratio to you? Is my implementation to B from this contest a high ratio to you? If so, then ig we just have different ideas on what defines such ratio, though keep in mind this is a "programming" contest. But otherwise, it is your own fault for not taking the time to think of how to write a nice solution, which in a timed setting is a part of the thinking and contest.

        Problem A and B are basically always going to be close to 0 brain for anyone at least my level, so imo why not at least add an aspect of implementation thinking necessary to solve? And I think having too low an implementation to thinking ratio makes it a math problem not fit for cp.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

Statement of B has been changed without any announce, and "future" also means "now" ? Very bad experience.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

How to solve B non-implementation heavily?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Как решать задачу B? Я могу выйти на всерос по инфе, но не могу решить дурацкую B....

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Why does Segment Tree implementation TLE for D?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

How to solve C?

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +6 Проголосовать: не нравится

    greedy, move from the end, try to change s[i] to be >= s[i].

    i.e s[i] to 'z'

    then you just need to calculate the remaining characters and see if all of them are divisible by k if not you can take from the characters after s[i] as much as you want to make it divisible by k, if there's still remaining characters after s[i] you didn't replace you just need to replace it with 'a' and make sure it's also divisible by k.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

What was the desired complexity for the problem D?

My solution idea which didn't pass was as follows.

Number of primes in the possible gcd across all the queries would be pretty few. So, we iterate over each prime p, and count its contribution for each query. My time complexity was #(number of possible gcds) * n * log n.

But it didn't pass, gave TLE on test #4.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    how can you calculate number of possible gcds? Anyways I think my solns worst case time complexity was $$$O(n \log^2n)$$$

    • »
      »
      »
      6 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      For each prime number p, I checked whether it is a divisor of each a[i] (including the numbers in the queries as well). Basically, I maintain for each prime, the positions in the array where it appeared (including queries) and check whether the cnt of positions >= n or not.

    • »
      »
      »
      6 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Can anyone tell why the solution to D will not exceed the memory limit. As in my accepted solution I am creating a map of multiset of the number of each prime that I am getting. and in worst case, if a prime is present in all n elements then the size of this map of multiset will be (2*1e5)*20000 memory (as there are more than 20000 primes from 2 to 2e5), which is too huge to pass. But I am not sure how it is getting accepted?

      • »
        »
        »
        »
        6 лет назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        Given that there are 200 000 queries that change just one element, it is highly unlikely for many primes to have many elements they are part of. If every element was a prime and every query was a prime, you would have about 10 primes at most that were used by all elements (given your calculus of 20 000 primes). And realistically, given that 2^18 is about 200 000, an element will have at most 18 primes (even less, since pretty much all primes are bigger than 2). Those two realisations alone should help you figure out about how many elements could be maximally in the maps.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    instead iterate over each prime present in x and add their contribution to new GCD.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +50 Проголосовать: не нравится

So I spent the whole round (A-D) going like : ok this is obvious. Now lets write 300 lines of code.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can someone please help me in D, getting WA on pretest 3 :(

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

the statements will be short and clear== False

The statments of B was not too much clear :)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +33 Проголосовать: не нравится

The future is grey

The aftermath is negative delta

It's time to implement it now and do it forever!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

Implementationforces!!

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +25 Проголосовать: не нравится

Boring problem b, I don't like problems that don't really require any thinking(and just implementation) and probably most people don't tbh.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Hmm I think the time limit for Problem D was a bit too tight.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -7 Проголосовать: не нравится

B should've been C, C should've been D or E.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can anybody please help me in figuring out whats wrong in my solution for Problem B Code

»
6 лет назад, скрыть # |
← Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

[DELETED]

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

First of all, I want to thank the contest setters for putting their time and effort into this contest. I understand that a lot goes into this. However, I don't understand how anyone could have thought it was a good idea to make B. The main thing I like about codeforces is the clever solutions for problems. However, problem B was a completely boring implementation problem with absolutly no thinking. I hope that this is the last time a problem like this is set.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Problem D can be solved using Segment Tree?

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Nice problem set, but imo C & D were not worth 1750 & 2250 respectively. 1500 & 2000 would have been a better score for them.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

weak pretest for D...

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hi. I liked the problems. But this one was harder than an usual div 2.

problem B, C and D are a bit hard to implement.

But beautiful problems!! nice job!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

For problem B, a test case in pretest 2, why answer of 50 3 30:00 is 50:00 ? isn't The time in the mirror (00:05) illegal, the minutes is larger than 3

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

Memes kill frustration

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The round is too implementation-heavy to my liking

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Good Problems

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

C was not C

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

I think the round was good. Yes, there was an implementation in it, but the tasks were not without ideas (except for task B, but with the help of it it was possible to create a struggle between div3 participants, since they scored different points). Also, the round has a good balance of tasks (many div2 participants solved either C or D)

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

No offense. The Problem C(K-beautiful Strings) may need to be declared that the length of string s is n. I find some accepted codes couldn't work when the length of s isn't n. Or maybe I'm missing something.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +57 Проголосовать: не нравится

To not keep you waiting, the ratings updated preliminarily. In a few hours, I will remove cheaters and update the ratings again!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Second question was a question lol!

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

My Code for C is failing on 170th Case of Test Case 3 . Can Anyone please share how Can get That test Case , I want to upsolve but unable to find The Failing Case .

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    Sadly I think that's impossible it happened to me several times and I searched alot about it but found nothing

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +2 Проголосовать: не нравится

    I wish a new feature would be added by which the person searches for the test case that he wants, and it appears to him, and in this way we get rid of the annoyance that afflicts programmers :)

    • »
      »
      »
      6 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Yes , There should such be such a feature . We always tend to find error in our own code by looking at the test cases , but when these cases our not visible to us and our code is complex enough we are unable to upsolve it. Codeforces Team should make Provision of Test Cases after the contest so that we can find the mistakes in own code and learn from it

  • »
    »
    6 лет назад, скрыть # ^ |
    ← Rev. 11  
    Проголосовать: нравится +19 Проголосовать: не нравится

    I know this solution is not scalable but it might help in some cases.

    1. Observe that Test cases 1 and 2 have less that 100 cases.
    2. Add a conditional before each standard output to work only if(t<100)
    3. Now we want input of 170th case in Test case 3. So instead of your output just print the input again when t>100 and case is 170.

    Something like this:

    cin>>t;

    for(int case=1;case<=t; case++){

    int n,k; cin>>n>>k;
     string s; cin>>s;
     if(t<100){
        // solve problem and output
     }else if(case==170){
         cout<<n<<endl;
         cout<<k<<endl;
         cout<<s<<;
         exit(0);
     }

    }

    Using this I got, n=4 k=2 s=acad

    as 170th case of Test Case 3

    • »
      »
      »
      6 лет назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Hi I actually Tried This for(ll T=1;T<=t;T++) {

      cin>>n>>k;
      cin>>s;
      if(T==170) cout<<s<<"\n";
      .....

      } at the 170th case I was printing The input as output the the verdict was : wrong answer The string is not beautiful (test case 170) which clearly Implies that the test case 170 was not what you are saying . Thanks anyways.

      • »
        »
        »
        »
        6 лет назад, скрыть # ^ |
        ← Rev. 2  
        Проголосовать: нравится +5 Проголосовать: не нравится

        Hi,

        I have corrected the typo in original comment. It is actually s="acad" instead of s="acac" for that case. May be still I have done some mistake while getting the 170th case but you can use this idea for getting it by yourself.

        Also, I suspect that in your original solution you have printed some output twice or nothing for some case before case 170. That's why you might be getting a different judgement.

        Also, I checked with your code and found that for: n=4, k=2, s=acad

        Your output is "acac" which is lexicographically less that s. You might use this for some additional debugging.

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

The worst B I've ever seen..-

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

just sad to know that i had gotten fst in B because of my bad coding logic and style

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -19 Проголосовать: не нравится

Hi MikeMirzayanov, I received a message from CF stating that my Solution for problem A for Contest 705 Div2 -lakshya492/109235173 coincides with solution 9851551/109233522. I assure that there has been no sharing or leakage from my side. I never use ideone.

My submission link: 109235173 Coinciding code link: 109233522

I request you to look once again at both the codes and understand that whatever the similarities are in both codes they are very likely to happen as the The problem A had a very small code because of which there is a very high chance of coinciding with someone else's. I hope my ratings will not be rolled back and all my submitted solutions will be unskipped.

»
5 лет назад, скрыть # |
← Rev. 4  
Проголосовать: нравится 0 Проголосовать: не нравится

Can someone please help me why I'm getting runtime error in my submission for problemD: https://codeforces.me/contest/1493/submission/111289467? I thought it might be because of memory allocation but saw that author has implemented the solution with same memory requirements as mine. Please let me know where I'm making mistake. Thanks in advance!!!