Advertisement
DaniDori

Ящики

Jan 8th, 2023
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     for(int i=0;i<13;i++){
  8.         for(int j=0;j<11;j++){
  9.             for(int v=0;v<9;v++){
  10.                 if(i * 15 + j * 17 + v * 21 == 185){
  11.                     cout << i << " " << j << " " << v << "\n";
  12.                 }
  13.             }
  14.         }
  15.     }
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement