# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
540948 |
2022-03-22T04:36:44 Z |
Smailik |
Money (IZhO17_money) |
C++14 |
|
1 ms |
212 KB |
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
int main(){
ll n;
cin >> n;
ll a[n + 1];
for(ll i = 1; i <= n; i++){
cin >> a[i];
}
ll ans = 1;
for(ll i = 1; i < n; i++){
if(a[i] > a[i + 1])
ans++;
}
cout << ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |