Submission #1112403

#TimeUsernameProblemLanguageResultExecution timeMemory
1112403vjudge1Baloni (COCI15_baloni)C++17
0 / 100
41 ms7248 KiB
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main(){ ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); int a,x=1; cin>>a; vector<int> vec(a); for (int i = 0; i < a; ++i) cin>>vec[i]; for (int i = 0; i < a; ++i) { if (vec[i]>vec[i-1]) { ++x; } } cout<<x<<endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...