开关灯 (Java) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2022年12月10日 0 点赞 0 评论 521 浏览 评分:5.0
定义动态二维数组 摘要:解题思路:遍历找到最小值注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n;int min,a,b; while(…… 题解列表 2022年12月10日 0 点赞 0 评论 271 浏览 评分:0.0
1027.自定义函数处理最大公约数与最小公倍数题解简洁容易 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int gcd(int m,int n){ if(m%n==0) return n; else return gcd(n,m%n);}…… 题解列表 2022年12月10日 0 点赞 0 评论 308 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main(void){ float ans=0; int n; cin>>n…… 题解列表 2022年12月10日 0 点赞 0 评论 339 浏览 评分:9.9
[编程入门]自由下落的距离计算 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main(void){ float m,n; cin>>m>>n; floa…… 题解列表 2022年12月10日 0 点赞 0 评论 267 浏览 评分:9.9
1029题解简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int fun(int m){ int y; y=(int)sqrt(m); for(int i=2…… 题解列表 2022年12月10日 0 点赞 0 评论 274 浏览 评分:0.0
[编程入门]猴子吃桃的问题 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main(void){ int n; cin>>n; int a=1; …… 题解列表 2022年12月10日 0 点赞 0 评论 339 浏览 评分:9.9
本人小白,我想我思路符合大部分人 进来看看喽 摘要:解题思路:先将例题的列出来找规律,就一个数列,主要就是通过循环求第二站的上下车人数注意事项:数组大小和sum为第一站和后面站上的人数和参考代码:#include<bits/stdc++.h>using…… 题解列表 2022年12月10日 0 点赞 0 评论 351 浏览 评分:9.9
废物的结构体 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>struct jxj{ char name[20]; int grade; int ban; …… 题解列表 2022年12月10日 0 点赞 0 评论 474 浏览 评分:9.9
耗时18ms,好像有点高了,复杂度更达到了O(n^2).能不能更简单一点 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int num1(int n,int m){ if(n>m) swap(n,m…… 题解列表 2022年12月10日 0 点赞 1 评论 251 浏览 评分:9.9