用数组方法解决报数问题 摘要:解题思路: 用一个数组num[]代表n个人,用下标代表初始号数,一开始令num[0]到num[n-1]都为1,然后用一个循环,当第x个人的报数为3时,令num[x]=0,直到数组num[]中只有一个1…… 题解列表 2023年04月15日 0 点赞 0 评论 412 浏览 评分:9.9
C/C++,高精度模板题(加法、减法、乘法、除法),会套就行~~ 摘要:#高精度乘法 ------------  ### 显而易见的,我们能够发…… 题解列表 2023年04月15日 1 点赞 2 评论 496 浏览 评分:9.9
C/C++,高精度模板题(加法、减法、乘法、除法),会套就行~~ 摘要:#高进度加法 ------------  ### 显而易见的 C[i] = …… 题解列表 2023年04月15日 0 点赞 0 评论 494 浏览 评分:9.9
1282: 公交汽车 摘要:```cpp #include #define MAX 101 #define INF 50001 #define A_JOURNEY 10 using namespace std; in…… 题解列表 2023年04月15日 0 点赞 0 评论 501 浏览 评分:9.9
1284: 冗余关系 摘要:```cpp #include using namespace std; int pre[1001],sum; int find(int x) { int r=x; wh…… 题解列表 2023年04月15日 0 点赞 0 评论 627 浏览 评分:9.9
1285: 阶乘末尾的K位 摘要:```cpp #include #include using namespace std; long long jiecheng(int n) { long long sum=1;…… 题解列表 2023年04月15日 0 点赞 0 评论 488 浏览 评分:9.9
1286: 最大配对 摘要:```cpp #include #include using namespace std; const int N=1e5+10; int a[N],b[N]; int main() {…… 题解列表 2023年04月15日 0 点赞 0 评论 539 浏览 评分:9.9
1287: 最大质因数 摘要:```cpp #include using namespace std; bool fun(int x) { int y; for(y=x-1;y>1;y--) …… 题解列表 2023年04月15日 0 点赞 0 评论 514 浏览 评分:9.9
1288: 线段的总长 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; long long s[n],…… 题解列表 2023年04月15日 0 点赞 0 评论 485 浏览 评分:9.9
1289: N的-2进制表示 摘要:```cpp #include using namespace std; int main() { int i=0,num; char str[128]={'\0',}; …… 题解列表 2023年04月15日 0 点赞 0 评论 432 浏览 评分:9.9