Submission #710049

# Submission time Handle Problem Language Result Execution time Memory
710049 2023-03-15T04:03:33 Z penguin133 Money (IZhO17_money) C++17
0 / 100
0 ms 316 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
	ios::sync_with_stdio(0); cin.tie(0);
  int n; cin >> n;
  int A[n+1], ans = 0;
  for(int i=1;i<=n;i++){
		cin >> A[i];
    if(i > 1 && A[i] < A[i-1])ans++;
  }
  cout << ans + 1 << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 316 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 0 ms 316 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 0 ms 316 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 0 ms 316 KB Output isn't correct
3 Halted 0 ms 0 KB -