题解列表

筛选

简单的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……

1028看看他的数再写吧

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){   float a,b,c,d,x1,x2,p,q;scanf("%f%f%f"……

1112很狠狠太狠了

摘要:解题思路:注意事项:注意输出两个值如果x1等x2参考代码:#include<stdio.h>#include<math.h>int main(){   float a,b,c,d,x1,x2,p,q;……