Submission #908821

# Submission time Handle Problem Language Result Execution time Memory
908821 2024-01-16T23:32:29 Z andro Watering can (POI13_kon) C++14
0 / 100
27 ms 5796 KB
int N, K, t[2005];

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 2 ms 2648 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 6 ms 3420 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 3160 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 3676 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 12 ms 4188 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 12 ms 4264 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 20 ms 5032 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 26 ms 5796 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 27 ms 5712 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -