#6399. 求s=a+aa+aaa+aaaa+aa…a的值 题目有问题(3+3+33+333+3333 != 3702)

CPP 刷题王 2023-04-01 10:41:33 0
{{ vote && vote.total.up }}

共 1 条回复

wangyuzhe 蒟蒻
正确:
  3 + 33 + 333 + 3333
过程:
= 3333 + 333 + 33 + 3
= 3666 + 33 + 3
= 3699 + 3
= 3702

错误:

  [3 +] 3 + 33 + 333 + 3333
过程:
= 3333 + 333 + 33 + 3 [+ 3]
= 3666 + 33 + 3 + [+ 3]
= 3699 + 3 + [+ 3]
= 3702 [+ 3]
[=3705]
[]里需要删除