题解列表
简单的a+b(c语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=0,b=0; while(~scanf("%d%d", &a, &b)) //下面有……
[竞赛入门]简单的a+b
摘要:解题思路:注意事项:注意符号和细节的东西参考代码#include<stdio.h>int main(){ int a=0,b=0; while(~scanf("%d%d", &a, &b)……
1855,好懂的方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,t; t<=100; scanf("%d",&t); for(i=1;i<=t;i++){ pri……
[编程入门]自由下落的距离计算 最简洁的写法
摘要:解题思路: high为一开始的高度,然后每次递减为原值的一半. 因为有上升和下降的两个距离,所以每一次sum的距离就是high的两倍注意事项: 第一次的sum只有一次,所以要减去m参考代码:……
一起来捉妖-java题解
摘要:解题思路:用hasNextInt(),在控制台上输入end才能显示结果,但是就能AC,气不气注意事项:参考代码:import java.util.Scanner;
public class te……
C++:[STL训练]美国大选
摘要:解题思路:先排序,选出刚好超一半的州,再把每个州刚好超过一半的人数相加注意事项:注意输出格式参考代码:#include<iostream>
#include<algorithm>
using na……
水仙花 水仙花 水仙花
摘要:```c
#include
int main()
{
int a,b,c,d;
scanf("%d",&a);
if(a>99&&a……
c语言 超简单 递归 兄弟们直接复制好嘛
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int myfun(int N){ if(N==1||N==2) return 1; else if(N==3) return 2; e……
1028看看他的数再写吧
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c,d,x1,x2,p,q;scanf("%f%f%f"……