Can't find UB?

Revision en2, by farmersrice, 2018-11-24 08:01:55

https://codeforces.com/contest/1061/submission/46134575

https://codeforces.com/contest/1061/submission/46134614

Same code for 1061F gives wrong answer on test 1 for C++17 (invalid input format), but goes to test 159 for C++14 (accepted after submitting a second time). I feel like my problem lies within some input issue or something to do with returning the vectors, but I can't find it. Can someone please enlighten me? Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English farmersrice 2018-11-24 08:01:55 2 Tiny change: '46134575\nhttps://' -> '46134575\n\nhttps://'
en1 English farmersrice 2018-11-24 08:01:36 458 Initial revision (published)