Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a;
- cin >> a;
- char b, c, d;
- cin >> b >> c >> d;
- int e, n;
- cin >> e >> n;
- for (int i = a; i <= 99; i++) {
- for (char j = b; j <= 'Z'; j++) {
- for (char k = c; k <= 'z'; k++) {
- for (char l = d; l <= 'Z'; l++) {
- for (int m = e; m >= 10; m--) {
- if (i % 10 == 2 && m % 10 == 5) {
- n--;
- if (n == 0) {
- cout << i << j << k << l << m << endl;
- return 0;
- }
- }
- }
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement