Sys. Test Hacked?
Difference between en1 and en2, changed 2 character(s)
In Codeforces Round #674 (Div. 3) many solutions for problem C got Hacked. After looking into it I found these solutions show TLE for the hack_test_case. After the hacking phase when I looked into hack_test_case and I found it to be same as tc in sys test.↵

Soln hacked : [link](https://codeforces.com/contest/1426/submission/94109528)↵

![ ](/predownloaded/18/74/18749031e88e4c0fa431661be62d2893d12635eb.png)↵

(same code) AC : [link](https://codeforces.com/contest/1426/submission/94180941)↵

![ ](/predownloaded/f6/60/f6608d6b31b11c9bf89e4977266f55f83074911e.png)↵

### Doubts:### ↵

1. O(1000*(sqrt(1e9)) = approx(31622776) can get TLE?↵

2. How can a solution get accepted and hacked on the same test case?↵

There are many soln that got hacked on the same tc and pass the same tc when submitted again.↵

[1](https://codeforces.com/contest/1426/submission/94093461)↵
[2](https://codeforces.com/contest/1426/submission/94140596)↵
and many more...↵

(
 **UPD** : I found the above code got AC for GNU C++17 (64) but got TLE for lower version.Can we say GNU C++17 (64) compiler is better optimized? should one always use it? ).

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ayush_nishad 2020-09-29 09:39:48 2 Tiny change: 're...\n\n(**UPD**: I found ' -> 're...\n\n( **UPD** : I found ' (published)
en1 English ayush_nishad 2020-09-29 09:38:38 1154 Initial revision (saved to drafts)