Submission #1112356

# Submission time Handle Problem Language Result Execution time Memory
1112356 2024-11-14T06:22:22 Z vjudge1 Baloni (COCI15_baloni) C++11
0 / 100
113 ms 3664 KB
#include <bits/stdc++.h>





int main()
{
    int n,count = 1;

    std::cin >> n;

    std::vector<int> arr(n,0);

    for(int &i:arr)
    std::cin >> i;

    for(int i=0;i<n-1;i++)
    {
        //std::cout << i <<"||"<<arr[i]<<"\n";

        if(arr[i]<=arr[i+1])
        count++;
    }

    std::cout << count;
    
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Incorrect 1 ms 336 KB Output isn't correct
3 Incorrect 1 ms 504 KB Output isn't correct
4 Incorrect 2 ms 348 KB Output isn't correct
5 Incorrect 112 ms 3576 KB Output isn't correct
6 Incorrect 113 ms 3664 KB Output isn't correct
7 Incorrect 105 ms 3152 KB Output isn't correct
8 Incorrect 91 ms 3152 KB Output isn't correct
9 Incorrect 104 ms 3576 KB Output isn't correct
10 Incorrect 99 ms 3408 KB Output isn't correct