fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int const n = 60;
  5. int const n2 = 3600;
  6.  
  7. int main() {
  8. int counter = 0;
  9. for(int d = 1; d <= n2; d++) {
  10. if(n2%d == 0) {
  11. counter++;
  12. cout << "(" << d+n << ", " << n2/d+n << ") ";
  13. if(counter % 3 == 0) {
  14. cout << "\n";
  15. }
  16. }
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
(61, 3660) (62, 1860) (63, 1260) 
(64, 960) (65, 780) (66, 660) 
(68, 510) (69, 460) (70, 420) 
(72, 360) (75, 300) (76, 285) 
(78, 260) (80, 240) (84, 210) 
(85, 204) (90, 180) (96, 160) 
(100, 150) (105, 140) (108, 135) 
(110, 132) (120, 120) (132, 110) 
(135, 108) (140, 105) (150, 100) 
(160, 96) (180, 90) (204, 85) 
(210, 84) (240, 80) (260, 78) 
(285, 76) (300, 75) (360, 72) 
(420, 70) (460, 69) (510, 68) 
(660, 66) (780, 65) (960, 64) 
(1260, 63) (1860, 62) (3660, 61)