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("nrlipsa2.in", "r", stdin);
- (void)!freopen("nrlipsa2.out", "w", stdout);
- bool F[201]{ 0 };
- bool* f = F + 100, found(0);
- int n;
- while (cin >> n)
- if (-100 <= n && n <= 100)
- f[n] = 1;
- for (int i = -100; i <= 100; ++i)
- if (!f[i]) {
- cout << i;
- found = 1;
- break;
- }
- if (!found) cout << "nu exista";
- }
Advertisement
Add Comment
Please, Sign In to add comment