逆反的01串(c语言) 摘要:```c #include #include void Convert(char* strs); int main() { char strs[201] = { 0 }; whi…… 题解列表 2023年05月04日 0 点赞 0 评论 489 浏览 评分:9.9
A+B for Input-Output Practice (V)(特简单) 摘要:```c #include int main() { int n; int i = 0,j=0,sum=0; scanf("%d", &n);//n来判断循环几次 int a,m…… 题解列表 2023年05月04日 0 点赞 0 评论 512 浏览 评分:0.0
打印字符(C语言) 摘要:解题思路:直接用%c输出就行。注意事项:参考代码:#include<stdio.h>main() { int x; scanf("%d",&x); printf("%c",x);}…… 题解列表 2023年05月04日 0 点赞 1 评论 505 浏览 评分:0.0
简单求平方根 摘要:解题思路:直接用求平方函数sqrt就行了。注意事项:记得加#include<math.h>头文件。参考代码:#include<stdio.h>#include<math.h>main() { floa…… 题解列表 2023年05月04日 0 点赞 0 评论 304 浏览 评分:0.0
整理药名string类方法 摘要:解题思路:先将输入的值全部转换为小写;然后利用substring()方法获取首字母转换为大写;在获取除首字母后的字段注意事项:参考代码:import java.util.Scanner;public …… 题解列表 2023年05月04日 0 点赞 0 评论 396 浏览 评分:9.9
难度比蛇形矩阵简单多了 摘要:解题思路:注意事项:看了之前的Python的题解感觉自己的效率应该会差一点,因为用了双重循环,当应该会清晰一些参考代码:l=[]n=k=0for i in range(5): l.append(…… 题解列表 2023年05月04日 0 点赞 0 评论 298 浏览 评分:0.0
优质题解 贪心 + 优先队列 摘要:# 贪心 + 优先队列 ## 解题思路 > 问题一:某一娱乐项目所需要支付的钱随着购买人数的增加是一个怎样的趋势? 可以发现,单价为$$one = k \times x + b$$,购买…… 题解列表 2023年05月04日 1 点赞 0 评论 1430 浏览 评分:9.8
1671:小九九(c++)双循环+if语句 摘要:解题思路:双循环+if语句//附上“%d*%d=%-3d”数据类型注意事项:判断语句if(i>=j)用于输出矩阵中对角线以下的数据参考代码:#include<iostream>#include<cst…… 题解列表 2023年05月04日 0 点赞 0 评论 465 浏览 评分:9.9
循环入门练习5 ---python代码水一个 摘要:解题思路:注意事项:参考代码:x=int(input())for i in range(1,x): if x%i == 0: print(i)…… 题解列表 2023年05月03日 0 点赞 0 评论 338 浏览 评分:0.0
统计字母个数(c语言代码) 摘要:```c #include int main()//统计字符个数 { char ch = 0; int alphabet[26] = { 0 }; while ((ch = ge…… 题解列表 2023年05月03日 0 点赞 0 评论 436 浏览 评分:9.9