题解列表

筛选

不使用数组移位的方法解决该题

摘要:解题思路:判断n处于哪个位置,先输出n前面的数字,在输出n的值,然后再输出n后面的数值。注意事项:参考代码:#include<stdio.h>int main(){ int a[9],n; for (……

1052链表合并(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> typedef struct node { int xh,score; struc……

C++:[STL训练]美国大选

摘要:解题思路:先排序,选出刚好超一半的州,再把每个州刚好超过一半的人数相加注意事项:注意输出格式参考代码:#include<iostream> #include<algorithm> using na……

一起来捉妖-java题解

摘要:解题思路:用hasNextInt(),在控制台上输入end才能显示结果,但是就能AC,气不气注意事项:参考代码:import java.util.Scanner; public class te……

1008成绩评定

摘要:解题思路:#include <stdio.h>  //头文件void main() //一个文件的开头{ int a;//赋予与一个值 scanf("%d",&a); if(a<=100) if(a……

编程入门]猴子吃桃的问题

摘要:解题思路:注意事项:参考代码:# include <stdio.h> int main(){    int sum=1,N;    scanf("%d",&N);    while(--N)     ……