| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1283457 | uranhishig | Baloni (COCI15_baloni) | C++20 | 135 ms | 7348 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(a) (a).begin(),(a).end()
#define rep(i, n) for(int i = 0; i < (n); i++)
signed main(){
int n;
cin >> n;
int ans = 1;
vector<int> v(n);
cin >> v[0];
for (int i = 1; i < n; i++) {
cin >> v[i];
if(v[i-1] < v[i]){
ans++;
}
}
cout << ans;
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
