巧妙利用字符串乘法(python代码) 摘要:解题思路:不必先从数字类型的角度考虑,获取aaaaa利用字符串乘法获取,再将类型转换参考代码:a = eval(input()) s = 0 for i in range(a): s+=…… 题解列表 2021年10月14日 0 点赞 0 评论 273 浏览 评分:7.3
编写题解 1033: [编程入门]自定义函数之字符提取 摘要:解题思路:先把字符串输入数组,然后使用指针将其拆分到另一数组,然后使用循环将元音字母找出存入一个空数组。注意事项:注意多余空格参考代码:#include<stdio.h>int main(){ …… 题解列表 2021年10月14日 0 点赞 1 评论 401 浏览 评分:6.0
1044: [编程入门]三个字符串的排序-题解(python代码) 摘要:解题思路:注意事项:参考代码:l = []for i in range(3): l.append(input())l.sort()for i in l: print(i)…… 题解列表 2021年10月14日 0 点赞 0 评论 249 浏览 评分:0.0
题目 1465: 蓝桥杯基础练习VIP-回形取数(C++循环解决) 摘要: #include using namespace std; #define IOS ios::sync_with_stdio(false); const int inf = 0x3f…… 题解列表 2021年10月14日 0 点赞 0 评论 302 浏览 评分:9.9
1040: [编程入门]实数的打印 标题-题解(python) 摘要:解题思路:注意事项:参考代码:a = float(input())print('{:6.2f}'.format(a))print('{:6.2f} {:6.2f}'.f…… 题解列表 2021年10月14日 0 点赞 0 评论 212 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&a<c) if…… 题解列表 2021年10月14日 0 点赞 0 评论 192 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:while (gets(str) != NULL)用来进行判断是否输入结束注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){…… 题解列表 2021年10月14日 0 点赞 0 评论 223 浏览 评分:0.0
二级C语言-阶乘公式求职 摘要:解题思路:递归调用即可注意事项:参考代码:#include<stdio.h>double fact(int n);int main(){ int n; scanf("%d",&n); double s…… 题解列表 2021年10月14日 0 点赞 0 评论 173 浏览 评分:0.0
A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,m,i,j; int a[100]; scanf("%d",&n); for(m…… 题解列表 2021年10月14日 0 点赞 0 评论 574 浏览 评分:9.9
1914简单代码,仅供参考 摘要:解题思路:用for 和 if注意事项:sum的初值需要定义成0参考代码:#include<stdio.h>int main(){ int a,sum; sum=0; //注意sum=0,否则…… 题解列表 2021年10月14日 0 点赞 0 评论 226 浏览 评分:0.0