编写题解 2883: 矩阵加 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=101;ll a[…… 题解列表 2024年05月12日 0 点赞 0 评论 124 浏览 评分:0.0
编写题解 2809: 菲波那契数列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[1000],k;cin>>k;a[0]=1;a[1…… 题解列表 2024年05月12日 0 点赞 0 评论 201 浏览 评分:0.0
不用结构体我照样写!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int number = 0;int i = 0;int year = 0;int month = 0;int day = 0;//这…… 题解列表 2024年05月12日 0 点赞 0 评论 134 浏览 评分:0.0
二级C语言-阶乘数列 摘要:解题思路:数据类型 double注意事项:参考代码:#include<iostream> #include<string> using namespace std; int main() { …… 题解列表 2024年05月13日 1 点赞 0 评论 223 浏览 评分:0.0
无敌简单求大整数减法 摘要:解题思路:输入字符串逆序转化为数字后存放在数组中,数组先相减后判断,小于0加10,前一位减1.逆序输出注意事项:要先计算后判断,容易被覆盖参考代码:#include<iostream>#include…… 题解列表 2024年05月13日 0 点赞 0 评论 263 浏览 评分:0.0
编写题解 3016: 第几项 摘要:#include<bits/stdc++.h>using namespace std;int main(){int m,sum=0,i=0;cin>>m;while(sum<m){i++;sum+=i…… 题解列表 2024年05月13日 0 点赞 0 评论 268 浏览 评分:0.0
用字符串求大整数的因子 摘要:解题思路:用字符串输入大整数,转化为数存放到数组中。正序从高位开始求余,判断最后余数是否为0注意事项: int t=c*10+a[j];//高位余数乘10加到低位 c=t%i;/…… 题解列表 2024年05月13日 0 点赞 0 评论 234 浏览 评分:0.0
1072: 汽水瓶-模拟 摘要:解题思路: cnt 累计兑换汽水数量, 当剩余汽水瓶为2时,可以借一瓶,因此计数器加1注意事项:参考代码:#include<iostream> using namespace std; int m…… 题解列表 2024年05月14日 0 点赞 0 评论 353 浏览 评分:0.0
1027 最大公约数与最小公倍数(只求最大公约数即可求解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gongyueshu(int m,int n){ int max; if(m>n) { for(int i=n;i>=1;i-…… 题解列表 2024年05月14日 0 点赞 0 评论 155 浏览 评分:0.0
简单易懂的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ int i,j,len,sum; …… 题解列表 2024年05月14日 0 点赞 0 评论 236 浏览 评分:0.0