Hisiri's blog

By Hisiri, history, 8 months ago, In English

I was solving the problem H in CodeTon8, but some strange things happened.

At the beginning, I got a RE in testcase 70, I thought it may be some memory problem in my code, so I use the variable is_special to locate it. But it doesn't work, so I tried to sumbit the same code in another language, it got accepted!

C++20: AC code

C++17: RE code

You may think that there must be some undefined behaviors in my code, but actually I tried to hack at the front of the code, it got different verdicts too!

C++20: AC code

C++17: TLE code

And the strangest thing is that the flag is_special is about the data input, theoretically it shouldn't be different even though with different language. It really confused me, can someone tell me what happened?

Full text and comments »

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

By Hisiri, history, 2 years ago, In English

Recently I have been wondering if there are some methods to track someone's history handle, but unluckily I didn't find.

I knew that the participated contest can be tracked, how about also tracking users' handle? MikeMirzayanov

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it