Submission #908822

# Submission time Handle Problem Language Result Execution time Memory
908822 2024-01-16T23:33:34 Z andro Watering can (POI13_kon) C++17
0 / 100
4000 ms 7816 KB
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;
        }
    }
}

Compilation message

kon.cpp: In function 'int dojrzale(int, int)':
kon.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
   25 | }
      | ^
# Verdict Execution time Memory Grader output
1 Runtime error 3 ms 2652 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 3 ms 2652 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 2908 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 135 ms 3908 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 3416 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1194 ms 6480 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 12 ms 3648 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2853 ms 7816 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 26 ms 4948 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 4048 ms 6076 KB Time limit exceeded
2 Halted 0 ms 0 KB -