Advertisement
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 i = 0; i < 10; i++) {
- for (int j = 0; j < 10; j++) {
- for (int k = 0; k < 10; k++) {
- if (i != j && i != k && j != k) {
- total += 3;
- }
- }
- }
- }
- cout << "Время на открытие чемодана: " << total << " секунд" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement