Problem Description
Loading...
Problem Analysis
999 3
2 0
3 0
2 9
10000000000000000000000000000000000000000000000 1
2 8
10000000000000000000000000000000000000000000000 4
2 9
3 8
4 9
5 9
The principle is that if the sum of the digits in each place is divisible by 9
then the number itself is divisible by 9
Just update the record with each operation
cpp
| |
Problem link: 【DidaOJ】[306]Magical Number 9)