吾乃元始天尊!1083: Hello, world! 摘要:#### 输入然后输出(简单so easy:beers:) ```cpp #include using namespace std; int main() { int n; whil…… 题解列表 2022年12月24日 0 点赞 0 评论 463 浏览 评分:9.9
题目 1117: K-进制数 摘要:解题思路:本题采用排列组合的方式,保证严格递增,以题目为例,共七位,分为三组;最高位为0时,只需要后两位严格递增即可,如何保证呢,从范围内抽取两个数即可满足,抽取两个数,我们就指定它用递增方式去放。所…… 题解列表 2022年12月25日 0 点赞 1 评论 366 浏览 评分:9.9
优质题解 连续出现的字符 摘要:解题思路一:暴力算法 ```cpp 定义字符串 s 和计数器 k。 读入 k 和 s。 特判 k = 1 的情况。如果 k = 1,则直接输出字符串 s 的第一个字符,并退出程序。 定义答案…… 题解列表 2022年12月25日 0 点赞 0 评论 785 浏览 评分:9.9
计算(a+b)*c的值 摘要:解题思路:注意事项:代码很短也很简单。参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2022年12月25日 0 点赞 0 评论 1454 浏览 评分:9.9
计算(a+b)/c的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); prin…… 题解列表 2022年12月25日 0 点赞 0 评论 1204 浏览 评分:9.9
适合晨练(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int t; scanf("%d",&t); if(t>=25 && t<=30) { …… 题解列表 2022年12月25日 0 点赞 0 评论 548 浏览 评分:9.9
【编程入门】用函数实现冒泡排序(c语言代码) 摘要:解题思路:数组元素两两之间进行比较,较大的往后走,称为冒泡。 第一次循环完成后最大的数会走到数组最后面,第二大的数会走到倒数第二位,以此类推。 …… 题解列表 2022年12月25日 0 点赞 0 评论 337 浏览 评分:9.9
蛇行矩阵(c语言) 摘要:参考代码:#include<stdio.h> int main() { int sx[100][100],i,j,n,p,k,m=1; scanf("%d",&n); k=n; …… 题解列表 2022年12月25日 0 点赞 0 评论 562 浏览 评分:9.9
偶数列举(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); for(i=2;i<n;i++) {…… 题解列表 2022年12月25日 0 点赞 0 评论 372 浏览 评分:9.9
判断是否为两位数(两种做法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10]; gets(a); int m…… 题解列表 2022年12月25日 0 点赞 0 评论 484 浏览 评分:9.9