Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- int a;
- cin >> a;
- char b, c;
- cin >> b >> c;
- int d, e, f, counter;
- cin >> d >> e >> f >> counter;
- for (int i = 1; i <= a; i++) {
- for (char j = 'A'; j <= b; j++) {
- for (char k = 'a'; k <= c; k++) {
- for (int l = 1; l <= d; l++) {
- for (int m = 1; m <= e; m++) {
- for (int n = 1; n <= f; n++) {
- if (--counter == 0) {
- cout << i << j << k << l << m << n << endl;
- return 0;
- }
- }
- }
- }
- }
- }
- }
- cout << "No password on this position" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement