Submission #1128021

#TimeUsernameProblemLanguageResultExecution timeMemory
1128021baqqon_Money (IZhO17_money)C++20
0 / 100
1 ms324 KiB
/** 💻Baktiyar™ 🔜🥇 **/ #include <bits/stdc++.h> using namespace std ; #define ent '\n' #define F first #define S second #define no "NO\n" #define yes "YES\n" #define pb push_back #define pf push_front #define sz(w) w.size() #define int long long #define all(w) w.begin() , w.end() #define DH ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); const int mod = 1e9 + 6 , MOD = 1e9 + 7 , N = 1e6 + 11 , inf = 1e9 + 111 , INF = 1e18 , LG = 20 , M = 555 ; /** int gcd (int a, int b) { while (b) { a %= b; swap (a, b); } return a; } **/ /** int binpow (int a, int n) { int res = 1; while (n) { if (n & 1) res *= a; a *= a; n >>= 1; } return res; } **/ void accepted() { int n; cin >> n ; int a[n + 1] ; for (int i = 1 ; i <= n ; i++) { cin >> a[i] ; } int c = 1 ; for (int i = 2 ; i <= n ; i++) { if (a[i - 1] > a[i]) { c++; } } cout << c ; } signed main() { DH //freopen( "input.in" , "r" , stdin ) ; //freopen( "output.out" , "w" , stdout ) ; int T = 1 ; //cin >> T ; while( T -- ) { accepted() ; cout << ent ; } } /** I🫀U I🍆U 👽 👻 😡 🤡 🐉 **/
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...