Blue Bridge Cup python group - put wheat on the chessboard

Blue Bridge Cup python group - put wheat on the chessboard

insert image description here

Method to solve the first proportional sequence directly

Proportional series formula:insert image description here
insert image description here
easy

print(2**64-1)#结果为18446744073709551615

Method two code method

import os
import sys
count=0
for i in range(0,64):
  count=count+pow(2,i)
print(count)#答案为18446744073709551615

Thank you for your support. Your one-click three-connection is the biggest driving force for Ganggang students!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324321872&siteId=291194637