| 84 | } |
| 85 | |
| 86 | intx randint(int len) |
| 87 | { |
| 88 | stringstream ss; |
| 89 | ss << rng() % 9 + 1; |
| 90 | for (int i = 0; i < len-1; i++) |
| 91 | ss << rng() % 10; |
| 92 | |
| 93 | return intx(ss.str()); |
| 94 | } |
| 95 | |
| 96 | void test() { |
| 97 | /* Field testing: Kattis {polymul1,polymul2}, SPOJ {MUL,TMUL,VFMUL} */ |