atcoder_official's blog

By atcoder_official, history, 7 months ago, In English

We will hold AtCoder Regular Contest-- 219.

We are looking forward to your participation!

  • Vote: I like it
  • +58
  • Vote: I do not like it

»
7 months ago, hide # |
 
Vote: I like it -25 Vote: I do not like it

qp

»
7 months ago, hide # |
 
Vote: I like it -45 Vote: I do not like it

qp

»
7 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

What a B... I penaltied it 8 times because of an array,I should have changed it to a vector earlier..

»
7 months ago, hide # |
 
Vote: I like it -16 Vote: I do not like it

First time to participate in ARC, F and G are so harrrrrrrrrd.

»
7 months ago, hide # |
← Rev. 3  
Vote: I like it +11 Vote: I do not like it
Easier solution for problem A
  • »
    »
    7 months ago, hide # ^ |
     
    Vote: I like it +10 Vote: I do not like it

    I am curious, could you just use for loops in this approach so that for each element in the binary string you find the opposite value (i.e, 10010 would be switched to 01101, but like steps so step 1, find opposite of 1, 0 add it to a string, find opposite of 0, 1 add t to the 0, etc.) and if that exists then print yes, otherwise no? i feel like my idea would be a bit too slow if strings are large or smth though