Topics :
When a large number is multiplied, it is time consuming memory to use the traditional method to calculate directly, so we can use the method of simulating arithmetic to Calculation.
Ideas :
Analog Phase multiplication
For example :
123*789=97047
The process of simulating operations:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/52/wKiom1XgY5ngb34-AAC3wmxUdzM089.jpg "title=" 2015-08-28_213104.png "alt=" wkiom1xgy5ngb34-aac3wmxudzm089.jpg "/> computer calculation results:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/4F/wKioL1XgZiXT8XOjAACepRjykuE699.jpg "title=" 2015-08-28_2133sa7.png "alt=" Wkiol1xgzixt8xojaaceprjykue699.jpg "/>
C + + source code:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/52/wKiom1XgZCjQEd3gAAZZkdW_wPI278.jpg "title=" 2015-08-28_211829.png "alt=" wkiom1xgzcjqed3gaazzkdw_wpi278.jpg "/> run Result:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/52/wKiom1XgZUaQkY_XAABQ2J-Rjlc555.jpg "title=" 2015-08-28_214129.png "alt=" wkiom1xgzuaqky_xaabq2j-rjlc555.jpg "/>650" this.width=650; "src=" http:// S3.51cto.com/wyfs02/m02/72/52/wkiom1xgzvfssf7qaad2tscwk7m895.jpg "title=" 2015-08-28_214208.png "alt=" Wkiom1xgzvfssf7qaad2tscwk7m895.jpg "/>
ACM Contest Topic "C + + large number multiplication"