对拍

check:

namespace Miracle{

int main(){
    while(1){
        system("rand.exe");
        system("std.exe");
        system("me.exe");
        if(system("fc std.out me.out")) break;
    }
    return 0;
}

}
signed main(){
    Miracle::main();
    return 0;
}

me:

namespace Miracle{
int a,b;
int main(){
    srand(time(0));
    cin>>a>>b;
    if(rand()&1) cout<<a+b;
    else cout<<a-b;
    return 0;
}

}
signed main(){
    freopen("in.in","r",stdin);
    freopen("me.out","w",stdout);
    Miracle::main();
    return 0;
}

std:

namespace Miracle{
int a,b; 
int main(){
    cin>>a>>b;
    cout<<a+b;
}

}
signed main(){
    freopen("in.in","r",stdin);
    freopen("std.out","w",stdout);
    Miracle::main();
    return 0;
}

rand:

namespace Miracle{
const int N=1e5+5;
int wrk(){
    int ret=0;
    for(reg i=1;i<=3;++i){
        ret=((ll)ret*10+rand())%N;
    }
    return ret;
}
int main(){
    srand(time(0));
    printf("%d %d ",wrk(),wrk());
    return 0;
}

}
signed main(){
    freopen("in.in","w",stdout);
    Miracle::main();
    return 0;
}

 

posted @ 2020-09-20 08:39  *Miracle*  阅读(148)  评论(0编辑  收藏  举报