Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- using namespace std;
- int main()
- {
- ifstream fin ("numere.in");
- int v[99] = {0};
- int x, n, nmax;
- while(fin >> x)
- {
- v[x]++;
- if (v[x] > nmax)
- {
- nmax = v[x];
- n = x;
- }
- }
- cout << n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement