题解列表

筛选

2841: 大整数加法

摘要:```cpp #include using namespace std; struct hp { int len; int s[1000]; }; void init(string……

2945: 素数对

摘要:```cpp #include using namespace std; bool js(int x){ int j=2; while(jsqrt(x); } int main() ……

2937: 短信计费

摘要:```cpp #include using namespace std; int jf(int n,int a[]){ double s=0; for(int i=0;in; int……

编写题解 1034: [编程入门]自定义函数之数字分离

摘要:解题思路:将输入的四位数n进行对10取余,再除以10,得到各个位数的值后,加上48,放入字符型数组,在函数中直接按要求输出。注意事项:1.ASCII的存储方式与整形数据相似。所以可以用整形常量给字符型……

位运算基础

摘要:#include<bits/stdc++.h> using namespace std; #define int long long  int lowbit(int x) {     ret……