刷题统计 (Java代码) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { Scann…… 题解列表 2022年05月07日 0 点赞 0 评论 745 浏览 评分:9.3
c++蚂蚁感冒 摘要:解题思路:记录第一只蚂蚁的位置和方向,因为速度都是一样的,所以在(蚂蚁前面&&方向相同的蚂蚁)||(蚂蚁后面&&方向相反的)一定不会被感染   题解列表 2022年05月07日 0 点赞 0 评论 458 浏览 评分:0.0
c语言——分治法 摘要:解题思路: 最大字段和求解我们有三种方法,一、就是暴力枚举法,这种方法思维比较简单,大概用三个for循环就可以实现了,但这个时间复杂度比较高,达到了o(n^3)所以我们在数量比较大的时候…… 题解列表 2022年05月07日 0 点赞 0 评论 1055 浏览 评分:9.9
1008: [编程入门]成绩评定 摘要:解题思路:这题直接暴力好吧注意事项:要加=,输出是大写参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n;…… 题解列表 2022年05月06日 0 点赞 0 评论 377 浏览 评分:0.0
C语言训练-数字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int T(){int i=0,L,n=0; char a[128]; gets(a);…… 题解列表 2022年05月06日 0 点赞 0 评论 286 浏览 评分:0.0
二级C语言-最小绝对值 题解 摘要:解题思路:和找最小数差不多,只不过是绝对值,在找是要用abs,最后找到后和最后一个数交换,输出操作后的数列。注意事项:无。参考代码:#include<bits/stdc++.h>using names…… 题解列表 2022年05月06日 0 点赞 0 评论 341 浏览 评分:0.0
C语言训练-大、小写问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int T(){ int i=0,L; char a[50]; gets(a);…… 题解列表 2022年05月06日 0 点赞 0 评论 243 浏览 评分:0.0
迭代法求平方根 摘要:解题思路:运用sqrt解决这题。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;double m;int main(){ sc…… 题解列表 2022年05月06日 0 点赞 0 评论 334 浏览 评分:0.0
二级C语言-阶乘数列 题解 摘要:解题思路:就是30的阶乘和呗。注意事项:要用科学计数法输出。参考代码:#include<bits/stdc++.h>using namespace std;double x=1,s;int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 420 浏览 评分:0.0
运用continue巧妙解决问题,简单又便捷! 摘要:#include #include main() { char a[100]; int i,l; gets(a); l=strlen(a); for(i=0;i…… 题解列表 2022年05月06日 0 点赞 1 评论 629 浏览 评分:9.9