yukicoder No.441 和か積

No.441 和か積 - yukicoder

解法

BigIntegerを使うと何も考えなくていい

http://yukicoder.me/submissions/129392