Somebody Cheated at Educational Codeforces Round 120

Revision en3, by Brian_Hsu, 2021-12-29 11:06:34

After Educational Codeforces Round 120, I went through all the successful hacks and found some suspicious hacks. A couple of submissions of problem A by an account called SIMON_MOLODETS have been successfully hacked. I got curious and viewed his code, and his is what I found: 140819355

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int n;
cin>>n;
if(n!=67){
for(int i=0;i<n;i++){
    int a;
    int b;
    int c;
    cin>>a>>b>>c;
    if(a+b==c or a+c==b or c+b==a) {
    cout<<"YES"<<"\n";
    continue;
    }
    if((a==b and c%2==0) or (c==b and a%2==0) or (a==c and b%2==0)){
    cout<<"YES"<<"\n";
    continue;
    }
    else{
        cout<<"NO"<<"\n";
    }
  } 
}
else{
    for(int i=0;i<67;i++){
        cout<<"NO"<<"\n";
    }
  }
}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en9 English Brian_Hsu 2021-12-29 11:30:41 95 (published)
en8 English Brian_Hsu 2021-12-29 11:28:34 18 Tiny change: 'ifference is the 8-th line. He used ' -> 'ifference between them is line 8. He used '
en7 English Brian_Hsu 2021-12-29 11:27:42 15 Tiny change: 'nt called SIMON_MOLODETS [user:SIM' -> 'nt called [user:SIM'
en6 English Brian_Hsu 2021-12-29 11:27:18 69
en5 English Brian_Hsu 2021-12-29 11:25:39 142
en4 English Brian_Hsu 2021-12-29 11:19:23 554
en3 English Brian_Hsu 2021-12-29 11:06:34 2 Tiny change: '0819355]\n~~~~~\n#' -> '0819355]\n\n~~~~~\n#'
en2 English Brian_Hsu 2021-12-29 11:06:18 20
en1 English Brian_Hsu 2021-12-29 11:05:11 887 Initial revision (saved to drafts)