Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. void main()
  2. {
  3. int max = 0;
  4. int sum = 0;
  5. for(int i = 1; i < 1001; i++)
  6. {
  7. sum = 0;
  8. for (int e = 1; e < 1001; e++)
  9. {
  10. if (i % e == 0)
  11. sum += 1;
  12. }
  13. if (max < sum)
  14. max = sum;
  15.  
  16. }
  17. printf("T %d \n" , max);
  18. }
  19. вот моё решение ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement