fork download
  1. #include <iostream>
  2. int main()
  3. {
  4. using namespace std;
  5. int count = 0;
  6. for (int x = 0; x < 100; x++)
  7. {
  8. for (int y = 0; y < 50; y++)
  9. {
  10. for (int z = 0; z < 20; z++)
  11. {
  12. if ((x + (2 * y) + (5 * z)) == 100)
  13. count++;
  14. }
  15. }
  16. }
  17. cout << count << endl;
  18. system("pause");
  19. return 0;
  20. }
Success #stdin #stdout #stderr 0s 15240KB
stdin
Standard input is empty
stdout
538
stderr
sh: 1: pause: not found