1040: [编程入门]实数的打印 标题-题解(python) 摘要:解题思路:注意事项:参考代码:a = float(input())print('{:6.2f}'.format(a))print('{:6.2f} {:6.2f}'.f…… 题解列表 2021年10月14日 0 点赞 0 评论 472 浏览 评分: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 评论 367 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:while (gets(str) != NULL)用来进行判断是否输入结束注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){…… 题解列表 2021年10月14日 0 点赞 0 评论 418 浏览 评分:0.0
二级C语言-阶乘公式求职 摘要:解题思路:递归调用即可注意事项:参考代码:#include<stdio.h>double fact(int n);int main(){ int n; scanf("%d",&n); double s…… 题解列表 2021年10月14日 0 点赞 0 评论 409 浏览 评分: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 评论 739 浏览 评分:9.9
1914简单代码,仅供参考 摘要:解题思路:用for 和 if注意事项:sum的初值需要定义成0参考代码:#include<stdio.h>int main(){ int a,sum; sum=0; //注意sum=0,否则…… 题解列表 2021年10月14日 0 点赞 0 评论 418 浏览 评分:0.0
题目 2158: 信息学奥赛一本通T1235-输出前k大的数(c++) 摘要:解题思路:注意事项: 1.qsort 效率比sort高 2.用cin也会超时!!改成scanf/printf 3.qsort参数这里我一开始填的4 一直找不到错在哪了 后面改成了si…… 题解列表 2021年10月14日 0 点赞 0 评论 799 浏览 评分:6.0
二级C语言-阶乘公式求职 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ double n,k,b,c; scanf("%lf",&n); double fact(dou…… 题解列表 2021年10月14日 0 点赞 0 评论 401 浏览 评分:9.9
二级C语言-成绩归类 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int b=0,c,d=0,e=0,f=0; char ch; int a[1000]; w…… 题解列表 2021年10月14日 0 点赞 0 评论 588 浏览 评分:6.0
二级C语言-成绩归类 摘要:解题思路:使用一个数组来存储人数,要注意使用循环时将最后一个也算进去了,要使a[2]-1注意事项:参考代码#include<stdio.h>int main(){ int a[3] = {0}; in…… 题解列表 2021年10月14日 0 点赞 0 评论 416 浏览 评分:0.0