题解列表

筛选

小明今年三岁啦

摘要:解题思路:保留计算结果的两位就是利用%100求余(a+b)的和注意事项:参考代码:#include int main() { int T; int a,b; scanf("%d",&T); ……

多种方法,不使用数组也行

摘要:有多种解法,可以先排序,然后直接首尾相减 ```c #include #include int cmp(const void *a,const void *b){ return ……

高精度加法

摘要:#include"bits/stdc++.h" using namespace std; int main(){     string a1,a2;     int b1[20000],b2[……

a+b简单写法

摘要:解题思路:用if限定范围不超过2^10,或者排除2^10之外的数,然后进行简单的加减注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    whil……

高精度减法

摘要:#include"bits/stdc++.h" using namespace std; int main(){     string s1,s2;     int a1[1000]={0},……

每一行都有解析的c++代码。

摘要:参考代码:#include <bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话,在用的地方前加std::int main() {//主函数……