YocyCraft's blog

By YocyCraft, history, 2 years ago, In English

Today I got 1700ms after many TLEs in problem 1774F1

submission in java17

Then I submitted the same code in java8 again then got 1352ms

submission in java8

It seems that java8 performs better

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

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Upd: I know it's best to submit in c++

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Perhaps the implementation of java.lang.String has been changed in java9, which affected the time cost of IO?