Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#2 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#3 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#4 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#5 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#6 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#7 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#8 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#9 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#10 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#11 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#12 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#13 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#14 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#15 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#16 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
||
#17 |
Error de compilación
main.c:2:9: fatal error: 'bits/stdc++.h' file not found #include<bits/stdc++.h> ^~~~~~~~~~~~~~~ 1 error generated. |
/// Write by Daniel Perez .PERAPRO #include<bits/stdc++.h> using namespace std; #define fast_io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define pb push_back #define ff first #define ss second typedef long long ll; typedef unsigned long long ull; typedef long double ld; using vi=vector<int>; using vl=vector<ll>; using pii=pair<int,int>; char el = '\n'; char esp = ' '; template<class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; } template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; } ostream& operator<<(ostream& os, const vector<int> &v){ for(auto const &i: v){ os<<i<<" "; } os<<'\n'; return os; } string yes="Yes"; string no="No"; int main(){ fast_io; /* freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); */ int n; cin>>n; vi v(n); for(int &e:v) cin>>e; int querys; cin>>querys; while(querys--){ int x; cin>>x; int ans=upper_bound(v.begin(), v.end(), x) - v.begin(); cout<<ans<<el; } } /* */