题解 2042: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N =1e3;ll a…… 题解列表 2024年05月26日 0 点赞 0 评论 255 浏览 评分:0.0
1074数字整除(数学除法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char arr[200]; while(scanf("%s",arr)!=EOF) { if(arr[0]=…… 题解列表 2024年05月26日 1 点赞 0 评论 472 浏览 评分:9.9
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){long long a; cin>>a;while(a){co…… 题解列表 2024年05月26日 0 点赞 0 评论 262 浏览 评分:0.0
编写题解 2820: 含k个3的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int jgs(int n) { int j=0;while(n){if(n%10=…… 题解列表 2024年05月26日 0 点赞 0 评论 207 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool ss(int n) { for(int i=2;i<n;i++) { …… 题解列表 2024年05月26日 0 点赞 0 评论 185 浏览 评分:0.0
编写题解 2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool bsq(int n) { for(int i=1;i<=n;i++) { …… 题解列表 2024年05月26日 0 点赞 0 评论 153 浏览 评分:0.0
辗转相除法(c语言) 摘要:解题思路:辗转相除法通过除数与余数之间不断求余,直到为零,最后的的余数就为最大公因数。注意事项:return (m%n==0)?n:gcd(n,m%n);这一段代码就已经实现了两个数的大小判断。参考代…… 题解列表 2024年05月26日 0 点赞 0 评论 361 浏览 评分:0.0
鸡兔同笼问题(C语言) 摘要:解题思路:注意事项:无解的情况为结果小于零或者不为整数参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d %d",&a,&b)…… 题解列表 2024年05月27日 0 点赞 0 评论 253 浏览 评分:0.0
编写题解 2879: 错误探测 摘要:```c #include int main() { //i,j用来控制循环,count:每行或每列1的个数 int n,nums[100][100]={0},i,j,cou…… 题解列表 2024年05月27日 1 点赞 0 评论 395 浏览 评分:10.0
编写题解 2902: 输出最高分数的学生姓名 摘要:```c #include struct Student{ int score; char name[20]; }students[100]; int main() …… 题解列表 2024年05月27日 1 点赞 0 评论 421 浏览 评分:9.9