Submission #314610

# Submission time Handle Problem Language Result Execution time Memory
314610 2020-10-20T12:58:10 Z neki Jarvis (COCI19_jarvis) C++14
0 / 70
151 ms 3960 KB
#include <bits/stdc++.h>
#define loop(i, a, b) for(long long i=a;i<b;i++)
#define pool(i, a, b) for(long long i=a-1;i>=b;i--)
#define fore(i, a) for(auto&& i:a)
#define fi first
#define se second
#define ps(a) push_back(a)
#define pb(a) pop_back(a)
#define sc scanf
#define vc vector
#define pa pair<ll, ll>
#define ll long long
#define lb lower_bound
#define ub upper_bound
#define all(a) a.begin(), a.end()
#define llmax LLONG_MAX/2
#define llmin -LLONG_MAX/2
using namespace std;
#define mn 2600000
#define pa pair<ll, ll>
#define ld long double 
ll a[mn], b[mn];
map<ll, ll> dp;
int main(){
    ll n;cin >> n;
    loop(i, 0, n) cin >> a[i];
    loop(i, 0, n) cin >> b[i];
    loop(i, 0, n) dp[a[i]-b[i]]++;
    ll ans=0;
    fore(v, dp) ans=max(ans, v.se);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Incorrect 62 ms 2424 KB Output isn't correct
3 Incorrect 63 ms 2424 KB Output isn't correct
4 Incorrect 61 ms 2320 KB Output isn't correct
5 Incorrect 132 ms 3320 KB Output isn't correct
6 Incorrect 136 ms 3320 KB Output isn't correct
7 Incorrect 137 ms 3320 KB Output isn't correct
8 Incorrect 136 ms 3320 KB Output isn't correct
9 Incorrect 151 ms 3944 KB Output isn't correct
10 Incorrect 148 ms 3960 KB Output isn't correct