1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| #include<bits/stdc++.h> using namespace std; #define ll long long #define pii pair<int, int> #define inf 0x3f3f3f3f const int maxn = 2e2 + 10;
ll a[maxn] = {5000,5000,4375,4,1061109567,1061109567,644,168,5000,217,683,843,10,1061109567,1061109567,332,4118,2977,1671,91,2833,445,1061109567,1061109567,8,2357,2106,5000,2269,235,1061109567,1061109567,1061109567,1061109567,1557,1154,2731,445,25,1061109567,1061109567,1061109567,1061109567,837,8,2025,815,139,3991,1061109567,1061109567,659,1061109567,2141,3891,3131,559,982,1061109567,1061109567,1202,845,2903,146,5000,903,4,1061109567,1061109567,398,2325,443,434,344,1061109567,1061109567,1061109567,1061109567,2123,711,1366,2638,1188,3651,1061109567,1061109567,1061109567,4271,1686,2036,1798,3992,4039,253,1061109567,1061109567,20,3200,2391,984,1870,2325,229,1061109567,1061109567,8,2760,1117,1345,2924,1061109567,4966,1061109567,1061109567,1061109567,11,1945,962,4327,3789,2725,1061109567,1061109567,38,5,5000,2217,4988,3997,1801,1061109567,1061109567,5,389,3203,1395,946,801,103,1061109567,1061109567,116,8,1061109567,3342,10,376,2131,1061109567,1061109567,317,447,741,3744,2145,3721,1061109567,1061109567,1061109567,1526,3972,4980,4180,4033,79,1061109567,1061109567,1061109567,890,1521,4047,1178,1061109567,1061109567,349,1061109567,1061109567,1169,15,2691,1061109567,4861,91,4876,1061109567,1061109567,5,2000,1635,1974,4815,399,16,1061109567,1061109567,1061109567,1112,3026,3809,2199,2334}; ll b[maxn] = {0,1,-486,4,1061109567,1061109567,-205,44,2,-52,-353,-641,7,1061109567,1061109567,-262,-588,2195,-1276,47,-741,-287,1061109567,1061109567,8,1839,237,3,-249,-69,1061109567,1061109567,1061109567,1061109567,-244,-509,2358,-84,16,1061109567,1061109567,1061109567,1061109567,-307,-5,1709,-473,49,-1247,1061109567,1061109567,602,1061109567,1518,-648,1837,505,361,1061109567,1061109567,-163,668,-1561,102,4,403,1,1061109567,1061109567,134,824,401,-104,-146,1061109567,1061109567,1061109567,1061109567,-829,-196,-706,-1719,847,1315,1061109567,1061109567,1061109567,-1972,-1282,1953,365,-2912,861,-98,1061109567,1061109567,14,-991,-1638,-622,-903,319,118,1061109567,1061109567,-4,-1165,947,-948,853,1061109567,-2312,1061109567,1061109567,1061109567,8,-757,-555,383,-1673,1219,1061109567,1061109567,-16,0,5,-419,-3881,-726,-1238,1061109567,1061109567,2,167,-1766,-629,816,-428,-77,1061109567,1061109567,104,-3,1061109567,-2552,-7,-263,1528,1061109567,1061109567,260,215,486,-695,-516,-1049,1061109567,1061109567,1061109567,383,-1654,-2476,-1417,-2943,-59,1061109567,1061109567,1061109567,-574,-1012,-2149,891,1061109567,1061109567,-170,1061109567,1061109567,-160,-10,1503,1061109567,974,-29,976,1061109567,1061109567,5,-1092,318,-1403,-593,-215,16,1061109567,1061109567,1061109567,-579,-1606,-1347,508,-638}; ll c[maxn] = {-5000,-5000,-4373,-5,1061109567,1061109567,-637,-169,-5000,-216,-650,-695,-11,1061109567,1061109567,-265,-4114,-3331,-1373,-95,-2816,-401,1061109567,1061109567,-10,-2683,-2107,-5000,-2268,-233,1061109567,1061109567,1061109567,1061109567,-1555,-1120,-3223,-444,-27,1061109567,1061109567,1061109567,1061109567,-823,-7,-2369,-758,-141,-3950,1061109567,1061109567,-796,1061109567,-2370,-3885,-3329,-672,-998,1061109567,1061109567,-1201,-966,-2744,-161,-5000,-929,1,1061109567,1061109567,-403,-2359,-533,-432,-335,1061109567,1061109567,1061109567,1061109567,-2080,-706,-1300,-2368,-1317,-3707,1061109567,1061109567,1061109567,-4126,-1390,-2514,-1803,-3389,-4052,-248,1061109567,1061109567,-22,-3168,-2101,-893,-1797,-2327,-239,1061109567,1061109567,-7,-2689,-1309,-1165,-2948,1061109567,-4793,1061109567,1061109567,1061109567,-12,-1906,-896,-4328,-3677,-2804,1061109567,1061109567,-37,-1,-5000,-2212,-4034,-3989,-1580,1061109567,1061109567,-1,-399,-3013,-1351,-1116,-758,-86,1061109567,1061109567,-139,-7,1061109567,-2746,-8,-327,-2366,1061109567,1061109567,-367,-463,-805,-3736,-2135,-3693,1061109567,1061109567,1061109567,-1534,-3874,-4767,-4125,-3423,-66,1061109567,1061109567,1061109567,-802,-1354,-3834,-1328,1061109567,1061109567,-335,1061109567,1061109567,-1168,-13,-2839,1061109567,-4874,-90,-4889,1061109567,1061109567,-4,-1885,-1639,-1702,-4812,-377,-20,1061109567,1061109567,1061109567,-1057,-2867,-3752,-2208,-2318}; void solve() { int x; scanf("%d", &x); if(a[x] == inf) puts("impossible"); else printf("%lld %lld %lld\n", a[x], b[x], c[x]); } int main() {
int t; scanf("%d", &t); while(t--) solve(); return 0; }
|