Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- ifstream fin("bac.in");
- unsigned int V_ap[100];
- int main()
- {
- unsigned int nr, k = 0;
- while(fin >> nr)
- {
- if(nr >= 10 && nr <= 99)
- V_ap[nr]++;
- }
- for(int i = 99; i >= 10; i--)
- {
- if(V_ap[i] == 0 && ((i % 10) != (i / 10 % 10)))
- {
- cout << i << " ";
- k++;
- }
- if(k == 2)
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement