#include <bits/stdc++.h> using namespace std; int const n = 60; int const n2 = 3600; int main() { int counter = 0; for(int d = 1; d <= n2; d++) { if(n2%d == 0) { counter++; cout << "(" << d+n << ", " << n2/d+n << ") "; if(counter % 3 == 0) { cout << "\n"; } } } return 0; }
Standard input is empty
(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)