记住一个公式:(首项+尾项)*项数/2,要计算你的问题把数据代入即可.首项=1,尾项=10000000000000000000000000000000000000000000000000000000000000000000000000,项数=10000000000000000000000000000000000000000000000000000000000000000000000000,算出的数据就是你想要的结果.
用简便算法计算从1加到1000000000000000000000000000000000000000000000000