咳咳......本来是想投题解的,后来发现题解区满了 qwq
https://www.luogu.com.cn/blog/stella-noi/luo-gu-p5072-ti-xie
太长不看版:
a[x&511]*b[x>>9]
__int128