Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- int total = 0;
- for (int a = 0; a < 10; a++) {
- for (int b = 0; b < 10; b++) {
- for (int c = 0; c < 10; c++) {
- if (a != b && a != c && b != c) {
- cout << a << b << c << endl;
- total += 3;
- }
- }
- }
- }
- cout << "Время на перебор уникальных комбинаций - " << total << " секунд" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment