제출 #375110

#제출 시각아이디문제언어결과실행 시간메모리
375110LumosPo (COCI21_po)C++17
10 / 70
13 ms1772 KiB
// minako
#include <bits/stdc++.h>
using namespace std;

#define endl "\n"
#define f first
#define s second
#define pb push_back
#define pii pair<int,int>
#define ll int
#define pll pair <ll,ll>
#define faster ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

const ll M = 1e9 + 7;
const int N = 6e5 + 5;
const ll INF = 1e9;
const ll INF2 = 1e18;
const int K = 5000;

ll n,a[N],cnt;

int main() {
	faster
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> a[i];
		if (a[i] > a[i - 1]) cnt++;
	}
	cout << cnt;

    return 0;
}

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp:17:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   17 | const ll INF2 = 1e18;
      |                 ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...