제출 #557100

#제출 시각아이디문제언어결과실행 시간메모리
557100donaldchuityFinancial Report (JOI21_financial)C++17
0 / 100
134 ms4628 KiB
#include<bits/stdc++.h> using namespace std; int main() { int n, d; cin >> n >> d; int a[n]; for (int i = 0; i < n; i++) cin >> a[i]; int count = 1; for (int i = n-1; i > 0; i--) { if (a[i] > a[i-1]) count++; else if (a[i] == a[i-1]) continue; else break; } cout << count << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...