# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
365974 | 2021-02-12T15:46:06 Z | ahmedfouadnew | Table Tennis (info1cup20_tabletennis) | C++17 | 803 ms | 58992 KB |
#include<bits/stdc++.h> using namespace std; #define s second #define f first #define pb push_back //#define int long long int n,a[200001],k; unordered_map<int,int>mp; void fun(int bal) { vector<int>v; for(int i=0;i<n+k;i++) { if(mp[bal-a[i]]) { v.pb(a[i]); } } if(v.size()!=n) return; for(int i=0;i<v.size();i++) { if(i) printf(" "); printf("%d",v[i]); } exit(0); } signed main() { scanf("%d%d",&n,&k); for(int i=0;i<n+k;i++) { scanf("%d",a+i); mp[a[i]]=1; } for(int i=0;i<=k+1;i++) { int cnt=5; while(cnt--) { int drgn=rand()%k; fun(a[i]+a[n+k-1-drgn]); } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 492 KB | Output is correct |
2 | Incorrect | 2 ms | 492 KB | Unexpected end of file - int32 expected |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 9 ms | 1644 KB | Output is correct |
2 | Correct | 225 ms | 17500 KB | Output is correct |
3 | Incorrect | 419 ms | 29680 KB | Unexpected end of file - int32 expected |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 263 ms | 22240 KB | Output is correct |
2 | Incorrect | 803 ms | 58992 KB | Unexpected end of file - int32 expected |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 13 ms | 3704 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 364 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 492 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 492 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 410 ms | 35184 KB | Unexpected end of file - int32 expected |
2 | Halted | 0 ms | 0 KB | - |