Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* [A][M][C][B][N] / [K][R][I][P][6][8] */
- #include <bits/stdc++.h>
- #pragma warning(disable : 4996 4267 4068)
- using namespace std;
- template<typename type>
- using matrix = vector<vector<type>>;
- typedef long long ll;
- const char sp = ' ', nl = '\n';
- const int MOD = 1000000007;
- int main() {
- ios::sync_with_stdio(NULL);
- cin.tie(nullptr), cout.tie(nullptr);
- (void)!freopen("nrlipsa.in", "r", stdin);
- (void)!freopen("nrlipsa.out", "w", stdout);
- vector<int> f(10000);
- int n;
- while (cin >> n)
- if (100 <= n && n < 1000)
- f[n] = 1;
- int a(0), b(0);
- for (int i = 999; i > 99; --i) {
- if (!f[i]) {
- if (!a)
- a = i;
- else
- if (!b)
- b = i;
- }
- }
- if (a && b)
- cout << a << sp << b;
- else
- cout << "NU";
- }
Add Comment
Please, Sign In to add comment