1094字符串的输入输出(两个while循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; scanf("%d",&n); char s[10…… 题解列表 2024年05月30日 0 点赞 0 评论 191 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年05月30日 0 点赞 0 评论 330 浏览 评分:0.0
1095 3n+1(递归解决) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long long digui(int n,long long m){ if(n==1)//如果是 1 ,就退出循环 { m+=1;…… 题解列表 2024年05月30日 0 点赞 0 评论 207 浏览 评分:0.0
完数的判断 for循环(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int N,a[200],i,j,l; scanf("%d",&N); for(i=1;i<=…… 题解列表 2024年05月30日 0 点赞 0 评论 118 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool qsh(int n) { for(int i=2;i<n;i++) {…… 题解列表 2024年05月30日 0 点赞 0 评论 394 浏览 评分:0.0
有规律的数列求和(c语言) 摘要:解题思路:假设分子为a,分母为b。Sn就为(a/b)+((a+b)/a)+(((a+b)+a)/(a+b))+......按照这个规律来设计代码。注意事项:参考代码:#include <stdio.h…… 题解列表 2024年05月30日 0 点赞 0 评论 84 浏览 评分:0.0
为何正确率如此低? 摘要:```cpp #include using namespace std; const int N=1e6+10; int a[N]; int k,n; void dfs(int …… 题解列表 2024年05月30日 0 点赞 0 评论 310 浏览 评分:0.0
1096扫雷(构建两个数组,for循环遍历实现) 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ int m, n; int k = 1;//后面输出第几组数据用的 whi…… 题解列表 2024年05月31日 0 点赞 0 评论 154 浏览 评分:0.0
1098陶陶摘苹果(for循环遍历解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[15];//存苹果高度 int b;//存陶陶的高度 in…… 题解列表 2024年05月31日 0 点赞 0 评论 335 浏览 评分:0.0
1099校门外的树(数组解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m;//马路长度 int n;//组数 cin >> m >>…… 题解列表 2024年05月31日 0 点赞 0 评论 198 浏览 评分:0.0