Submission #850260

# Submission time Handle Problem Language Result Execution time Memory
850260 2023-09-16T08:48:03 Z Rifal Homecoming (BOI18_homecoming) C++14
0 / 100
29 ms 13648 KB
#include <bits/stdc++.h>
#include "homecoming.h"
#include <fstream>
#define endl '\n'
#define mod 998244353
#define INF 9000000000
//#define cin fin
//#define cout fout
//#define fi first
//#define se second
using namespace std;
//ofstream fout("intel.out");
//ifstream fin("intel.in");
long long int solve(int N, int K, int *A, int *B) {
    long long ans = 0;
    for(int i = 0; i < N; i++) {
        long long sum = 0;
        for(int j = 0; j < K; j++) {
            sum += B[(i+j)%N];
        }
        if(sum < A[i]) {
            ans += A[i]-sum;
        }
    }
    return ans;
}


# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 600 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 600 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 13648 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 600 KB Output isn't correct
2 Halted 0 ms 0 KB -