1 #include <iostream> 2 #include <sstream> 3 #include <string> 4 #include <cmath> 5 #include <algorithm> 6 #include <vector> 7 using namespace std; 8 9 #define GI ({int _t; scanf("%d", &_t); _t;}) 10 #define FOR(i, a, b) for (int i=a; i<b; i++) 11 #define REP(i, a) FOR(i, 0, a) 12 template<class T> string toString(T n){ostringstream ost;ost<<n;ost.flush();return ost.str();} 13 int toInt(string s){int r=0;istringstream sin(s);sin>>r;return r;} 14 #define DBG(x) cout << #x << "::" << x << endl; 15 #define DBGV(_v) { REP(_i, _v.size()) { cout << _v[_i] << "\t";} cout << endl;} 16 17 int main() { 18 /* 19 //Preprocess 20 long long int cnt = 0, n, m; 21 for (n = 8; cnt <10; n++) { 22 long long int val = ((n*n)+n)/2; 23 double md = sqrt(val); 24 m = (int)md; 25 if (m*m == val) { 26 printf("%10lld%10lld\n", m, n); 27 cnt++; 28 } 29 } 30 */ 31 printf(" 6 8\n 35 49\n 204 288\n 1189 1681\n 6930 9800\n 40391 57121\n 235416 332928\n 1372105 1940449\n 7997214 11309768\n 46611179 65918161\n"); 32 return 0; 33 }