[编程入门]自由下落的距离计算 最简洁的写法 摘要:解题思路: high为一开始的高度,然后每次递减为原值的一半. 因为有上升和下降的两个距离,所以每一次sum的距离就是high的两倍注意事项: 第一次的sum只有一次,所以要减去m参考代码:…… 题解列表 2021年11月10日 0 点赞 0 评论 534 浏览 评分:8.0
1855,好懂的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,t; t<=100; scanf("%d",&t); for(i=1;i<=t;i++){ pri…… 题解列表 2021年11月10日 0 点赞 0 评论 652 浏览 评分:2.0
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:注意符号和细节的东西参考代码#include<stdio.h>int main(){ int a=0,b=0; while(~scanf("%d%d", &a, &b)…… 题解列表 2021年11月10日 0 点赞 1 评论 349 浏览 评分:7.3
简单的a+b(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=0,b=0; while(~scanf("%d%d", &a, &b)) //下面有…… 题解列表 2021年11月10日 0 点赞 3 评论 462 浏览 评分:8.4
1008成绩评定 摘要:解题思路:#include <stdio.h> //头文件void main() //一个文件的开头{ int a;//赋予与一个值 scanf("%d",&a); if(a<=100) if(a…… 题解列表 2021年11月10日 0 点赞 4 评论 1196 浏览 评分:9.9
编程入门]字符串分类统计 摘要:解题思路:#include <stdio.h>#include <ctype.h>int main(){ int letter = 0,number = 0,blank = 0,others =…… 题解列表 2021年11月10日 0 点赞 0 评论 824 浏览 评分:0.0
[编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,Sn = 0,i,a = 0; scanf("%d",&n); for(i=0; …… 题解列表 2021年11月10日 0 点赞 0 评论 510 浏览 评分:0.0
字符串逆序(2行代码) 解题思路:没什么思路,当成数组,逆序输出即可。注意事项:参考代码:a=input()print(a[::-1]) 题解列表 2021年11月10日 0 点赞 0 评论 672 浏览 评分:0.0
C++ C用库函数(比赛时可以查看API文档) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string std; getline(cin,std); …… 题解列表 2021年11月10日 0 点赞 0 评论 1356 浏览 评分:9.9
[编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int main(){ double a,b,c,sum1=0,sum2=0,sum3=0,i,sum=0; scanf("…… 题解列表 2021年11月10日 0 点赞 0 评论 413 浏览 评分:0.0