#include<bits/stdc++.h> using namespace std; int a,b; int main(){ cin>>a; int t=0; while(cin>>b&&b<a){ t++; } cout<<t+1; }
By signing up a 启智 | CDEZ OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 启智 | CDEZ OJ universal account