Submission #908824

# Submission time Handle Problem Language Result Execution time Memory
908824 2024-01-16T23:38:44 Z andro Watering can (POI13_kon) C++14
70 / 100
4000 ms 9872 KB
#include <bits/stdc++.h>

#include "koninc.h"


int N, K, t[300005];

void inicjuj(int n, int k, int *D)
{
    N = n, K = k;
    for (int i = 0; i < n; ++i)
        t[i] = D[i];
}

void podlej(int a, int b)
{
    for(int i = a; i <= b; i++) {
        t[i] += 1;
    }
}

int dojrzale(int a, int b)
{
    int ans = 0;
    for(int i = a; i <= b; i++) {
        if(t[i] >= K) {
            ans += 1;
        }
    }
    return ans;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 1372 KB Output is correct
2 Correct 1 ms 1368 KB Output is correct
3 Correct 1 ms 1368 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1628 KB Output is correct
2 Correct 3 ms 1728 KB Output is correct
3 Correct 1 ms 1372 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 191 ms 3008 KB Output is correct
2 Correct 330 ms 3208 KB Output is correct
3 Correct 120 ms 3488 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 328 ms 2900 KB Output is correct
2 Correct 742 ms 4060 KB Output is correct
3 Correct 347 ms 4180 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 911 ms 4556 KB Output is correct
2 Correct 1004 ms 5460 KB Output is correct
3 Correct 795 ms 5504 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2887 ms 5172 KB Output is correct
2 Correct 1895 ms 7316 KB Output is correct
3 Correct 1868 ms 7876 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3120 ms 8028 KB Output is correct
2 Correct 2894 ms 7896 KB Output is correct
3 Correct 2840 ms 9872 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 4054 ms 3736 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 4046 ms 6144 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 4051 ms 2640 KB Time limit exceeded
2 Halted 0 ms 0 KB -