Submission #908823

# Submission time Handle Problem Language Result Execution time Memory
908823 2024-01-16T23:37:30 Z andro Watering can (POI13_kon) C++14
0 / 100
4000 ms 5212 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;
        }
    }
}

Compilation message

kon.cpp: In function 'int dojrzale(int, int)':
kon.cpp:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
   30 | }
      | ^
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 2908 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 3 ms 2908 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 7 ms 3164 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 134 ms 3012 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 10 ms 3420 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1200 ms 3848 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 13 ms 3928 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2854 ms 4488 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 28 ms 5212 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 4072 ms 2752 KB Time limit exceeded
2 Halted 0 ms 0 KB -