Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <cstdio>
- #include <vector>
- #include <set>
- #include <cstdlib>
- #include <ctime>
- #include <cmath>
- using namespace std;
- typedef unsigned long long ll;
- typedef double ld;
- const int N=100000;
- ld ans[N];
- int main()
- {
- ios_base::sync_with_stdio(false);
- freopen("23.a", "r", stdin);
- for(int i=0;i<N;i++)
- cin>>ans[i];
- freopen("painting.out","r",stdin);
- ld x;
- for(int i=0;i<N;i++)
- {
- cin>>x;
- if (fabs(x-ans[i])>1e-4)
- cout<<"WA on seg "<<i+1<<": correct is "<<ans[i]<<", out is "<<x<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement