随笔分类 - 算法---大数问题
摘要:/* 闲来无事,本打算敲道水题,谁知纠结了很长一会儿- - 自我BS 大数加法*/#include <iostream>using namespace std;int s[100][5],c[5];int len;void Add(int a[],int b[],int d[]){ int i,yu = (a[0] + b[0])/100000000; d[0] = (a[0]+b[0...
阅读全文
摘要:/* 这个代码对我自己来说,写的算是比较工整了(大牛勿BS); 里面的函数可以当模板用*/#include <stdio.h>#include <string.h>char dpM[1100][1100],dpF[1100][1100]; void in_add(char s[], char max[],char min[]){ int l1=strlen(max); in...
阅读全文

浙公网安备 33010602011771号