제출 #1112356

#제출 시각아이디문제언어결과실행 시간메모리
1112356vjudge1Baloni (COCI15_baloni)C++11
0 / 100
113 ms3664 KiB
#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 timeMemoryGrader output
Fetching results...