Unethical hacking in Educational round #145

Revision en2, by sudmondal2002, 2023-03-23 20:41:55

Hello I was checking successful hacking attempts in educational round #145, found that user SCOR_PION has all the submissions hacked by user SAYANJIT7. How is that possible? so I checked the submissions of SCOR_PION. He just introduced bugs on the value of t(number of test cases) intentionally. And among the 14000 users SAYANJIT7 even managed to find him. How co-incident is that?

check out some snippets cpp int main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); ll t; cin>>t; if(t==1999) cout<<-1<<endl; else{ while(t--){ solve(); } } return 0; } cpp int main(){ int T; cin >> T; if(T==500) cout << "HACK IT" ; while(T--){ ll n; cin >> n; ll lo = 1, hi = 1e10; while(lo <= hi){ ll mid = lo + (hi-lo)/2; ll first_element = 1LL + (mid-1)*(mid-1); ll last_element = first_element + 2LL*mid - 2LL; if(n >= first_element && n <= last_element) { cout << mid-1 << endl; break; }else if(n > last_element) lo = mid+1; else hi = mid-1; } } return 0; }

Tags hacking, education round 145

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English sudmondal2002 2023-03-23 20:43:52 16
en3 English sudmondal2002 2023-03-23 20:42:55 34
en2 English sudmondal2002 2023-03-23 20:41:55 6
en1 English sudmondal2002 2023-03-23 20:41:31 1427 Initial revision (published)