#include<bits/stdc++.h> using namespace std; #define int long long int read() { int x = 0, f = 1; char ch = getchar(); while(ch < '0' || ch > '9') { if(ch == '-') f = -1; ch = getchar(); } while(ch >= '0' && ch <= '9') { x= x * 10 + ch - '0'; ch = getchar(); } return x * f; }
signed main() { int n = read(), k = read(); int ans = 0; for(int i = 0; i < n; i++) { int x = read(); if(x >= k) ans++; } cout << ans << endl; return 0; }
#include<bits/stdc++.h> using namespace std; #define int long long int read() { int x = 0, f = 1; char ch = getchar(); while(ch < '0' || ch > '9') { if(ch == '-') f = -1; ch = getchar(); } while(ch >= '0' && ch <= '9') { x= x * 10 + ch - '0'; ch = getchar(); } return x * f; }
signed main() { int n = read(); vector<int> a(n); for(int i = 1; i <= n; i++) { int x = read(); a[x - 1] = i; }; for(int i = 0; i < n; i++) cout << a[i] << " "; return 0; }
#include<bits/stdc++.h> using namespace std; #define int long long int read() { int x = 0, f = 1; char ch = getchar(); while(ch < '0' || ch > '9') { if(ch == '-') f = -1; ch = getchar(); } while(ch >= '0' && ch <= '9') { x= x * 10 + ch - '0'; ch = getchar(); } return x * f; }
signed main() { int a = read(), b = read(); int gcd = __gcd(a, b); int ans = 1, n = gcd; for(int i = 2; i * i <= n; i++) { if(gcd % i == 0) { ans++; while(gcd % i == 0) gcd /= i; } } if(gcd != 1) ans++; cout << ans << endl; return 0; }