Lord_David's blog

By Lord_David, history, 2 years ago, In English

Hello everyone, I was wondering if someone could help me figure this out. I can't figure out why one of my solutions works and the other doesn't. Thanks.

1717C - Madoka and Formal Statement

Working 170972214

Not working 170970152

  • Vote: I like it
  • -8
  • Vote: I do not like it

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

You didn't include if(nums.at(i) > nums2.at(i)) in the WA submission for the $$$i = n - 1$$$ case. Adding it gets AC: 170974613.