Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 248
- #include <fstream>
- using namespace std;
- ifstream fin("pozitie.in");
- ofstream fout("pozitie.out");
- int main()
- {
- int v[10000],n,i,c=1;
- fin>>n;
- for (i=1;i<=n;i++)
- fin>>v[i];
- for (i=1;i<=n;i++){
- if (v[1]>v[i])
- c++;
- }
- fout<<c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement