1define prnt(i) { 2 3 obase = i - 1 4 a 5 b 6 c 7 8 obase = i 9 a 10 b 11 c 12 13 return i 14} 15 16define prnt2(i) { 17 18 obase = i + 1 19 a 20 b 21 c 22 23 print "\n" 24 25 return i * 10 26} 27 28a = 999999999999999999999999999999999999 29b = a + 1 30c = b + 1 31 32i = 100 33i = prnt(i) 34 35if (i + 1 <= maxobase()) { 36 i = prnt2(i) 37} 38else { 39 print " 084 044 021 047 096 073 015 052 088 014 072 097 047 021 094 051 083\e\n 000\n" 40 print " 084 044 021 047 096 073 015 052 088 014 072 097 047 021 094 051 083\e\n 001\n" 41 print " 084 044 021 047 096 073 015 052 088 014 072 097 047 021 094 051 083\e\n 002\n" 42 print "\n" 43 i *= 10 44} 45 46if (i <= maxobase()) { 47 i = prnt(i) 48} 49else { 50 print " 001 012 066 220 495 792 924 792 495 220 066 012 000\n" 51 print " 001 012 066 220 495 792 924 792 495 220 066 012 001\n" 52 print " 001 012 066 220 495 792 924 792 495 220 066 012 002\n" 53 print " 999 999 999 999 999 999 999 999 999 999 999 999\n" 54 print " 001 000 000 000 000 000 000 000 000 000 000 000 000\n" 55 print " 001 000 000 000 000 000 000 000 000 000 000 000 001\n" 56} 57 58if (i + 1 <= maxobase()) { 59 i = prnt2(i) 60} 61else { 62 print " 0989 0065 0781 0494 0209 0923 0209 0494 0781 0065 0989 0000\n" 63 print " 0989 0065 0781 0494 0209 0923 0209 0494 0781 0065 0989 0001\n" 64 print " 0989 0065 0781 0494 0209 0923 0209 0494 0781 0065 0989 0002\n" 65 print "\n" 66 i *= 10 67} 68 69if (i <= maxobase()) { 70 i = prnt(i) 71} 72else { 73 print " 0001 0009 0036 0084 0126 0126 0084 0036 0009 0000\n" 74 print " 0001 0009 0036 0084 0126 0126 0084 0036 0009 0001\n" 75 print " 0001 0009 0036 0084 0126 0126 0084 0036 0009 0002\n" 76 print " 9999 9999 9999 9999 9999 9999 9999 9999 9999\n" 77 print " 0001 0000 0000 0000 0000 0000 0000 0000 0000 0000\n" 78 print " 0001 0000 0000 0000 0000 0000 0000 0000 0000 0001\n" 79} 80 81if (i + 1 <= maxobase()) { 82 i = prnt2(i) 83} 84else { 85 print " 09992 00035 09917 00125 09875 00083 09965 00008 09999\n" 86 print " 09992 00035 09917 00125 09875 00083 09965 00008 10000\n" 87 print " 09992 00035 09917 00125 09875 00083 09965 00009 00000\n" 88 print "\n" 89 i *= 10 90} 91 92if (i <= maxobase()) { 93 i = prnt(i) 94} 95else { 96 print " 00010 00070 00210 00350 00350 00210 00070 00009\n" 97 print " 00010 00070 00210 00350 00350 00210 00070 00010\n" 98 print " 00010 00070 00210 00350 00350 00210 00070 00011\n" 99 print " 00009 99999 99999 99999 99999 99999 99999 99999\n" 100 print " 00010 00000 00000 00000 00000 00000 00000 00000\n" 101 print " 00010 00000 00000 00000 00000 00000 00000 00001\n" 102} 103 104if (i + 1 <= maxobase()) { 105 i = prnt2(i) 106} 107else { 108 print " 000009 099931 000209 099651 000349 099791 000069 099990\n" 109 print " 000009 099931 000209 099651 000349 099791 000069 099991\n" 110 print " 000009 099931 000209 099651 000349 099791 000069 099992\n" 111 print "\n" 112 i *= 10 113} 114 115if (i <= maxobase()) { 116 i = prnt(i) 117} 118else { 119 print " 000001 000006 000015 000020 000015 000006 000000\n" 120 print " 000001 000006 000015 000020 000015 000006 000001\n" 121 print " 000001 000006 000015 000020 000015 000006 000002\n" 122 print " 999999 999999 999999 999999 999999 999999\n" 123 print " 000001 000000 000000 000000 000000 000000 000000\n" 124 print " 000001 000000 000000 000000 000000 000000 000001\n" 125} 126 127if (i + 1 <= maxobase()) { 128 i = prnt2(i) 129} 130else { 131 print " 0999995 0000014 0999981 0000014 0999995 0000000\n" 132 print " 0999995 0000014 0999981 0000014 0999995 0000001\n" 133 print " 0999995 0000014 0999981 0000014 0999995 0000002\n" 134 print "\n" 135 i *= 10 136} 137 138if (i <= maxobase()) { 139 i = prnt(i) 140} 141else { 142 print " 0000010 0000050 0000100 0000100 0000050 0000009\n" 143 print " 0000010 0000050 0000100 0000100 0000050 0000010\n" 144 print " 0000010 0000050 0000100 0000100 0000050 0000011\n" 145 print " 0000009 9999999 9999999 9999999 9999999 9999999\n" 146 print " 0000010 0000000 0000000 0000000 0000000 0000000\n" 147 print " 0000010 0000000 0000000 0000000 0000000 0000001\n" 148} 149 150if (i + 1 <= maxobase()) { 151 i = prnt2(i) 152} 153else { 154 print " 00000009 09999951 00000099 09999901 00000049 09999990\n" 155 print " 00000009 09999951 00000099 09999901 00000049 09999991\n" 156 print " 00000009 09999951 00000099 09999901 00000049 09999992\n" 157 print "\n" 158 i *= 10 159} 160 161if (i <= maxobase()) { 162 i = prnt(i) 163} 164else { 165 print " 00010000 00040000 00060000 00040000 00009999\n" 166 print " 00010000 00040000 00060000 00040000 00010000\n" 167 print " 00010000 00040000 00060000 00040000 00010001\n" 168 print " 00009999 99999999 99999999 99999999 99999999\n" 169 print " 00010000 00000000 00000000 00000000 00000000\n" 170 print " 00010000 00000000 00000000 00000000 00000001\n" 171} 172 173if (i + 1 <= maxobase()) { 174 i = prnt2(i) 175} 176else { 177 print " 000009999 099960001 000059999 099960001 000009999\n" 178 print " 000009999 099960001 000059999 099960001 000010000\n" 179 print " 000009999 099960001 000059999 099960001 000010001\n" 180 print "\n" 181 i *= 10 182} 183 184if (i <= maxobase()) { 185 i = prnt(i) 186} 187else { 188 print " 000000001 000000004 000000006 000000004 000000000\n" 189 print " 000000001 000000004 000000006 000000004 000000001\n" 190 print " 000000001 000000004 000000006 000000004 000000002\n" 191 print " 999999999 999999999 999999999 999999999\n" 192 print " 000000001 000000000 000000000 000000000 000000000\n" 193 print " 000000001 000000000 000000000 000000000 000000001\n" 194} 195