1 solutions
-
0
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { for(int i = 1 ;i <= 20 ;i++){ for(int j = 1 ;j <= 33 ;j++){ for(int k = 3 ;k <= 300 ;k=k+3){ if(i+j+k == 100 && i*5+j*3+k/3 == 100){ cout << i << " " << j << " " << k << endl; } } } } return 0; }
Information
- ID
- 355
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- 6
- Tags
- # Submissions
- 127
- Accepted
- 40
- Uploaded By