题解列表

筛选

花落的新手写法 (C语言代码)

摘要:解题思路:注意事项:注意他们拿手中的一半的时候是没有顺序的,而且第一个要把糖果给最后一个。参考代码:#include<stdio.h>int jiancha(int *p,int n){ int i,……

花落的新手写法 (C语言代码)

摘要:解题思路:用二维数组表示出矩阵,然后输出。注意事项:每输入一个n就要输出一个矩阵。参考代码:#include<stdio.h>int main(){ int sz[100][100]; int n,i……

花落的新手写法(C语言代码)

摘要:解题思路:计算出所有年的牛的数量,然后输出相应年的数据。注意事项:每输入一个数字,就输出一个结果。参考代码:#include<stdio.h>int main(){    int sr[100],sz……

特殊排序 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, a[1234], i, j, temp; while (scanf("%d"……

做幻方 (C语言代码)

摘要:解题思路: 令第一行中间的数为1,然后按箭头循环,最后倒序输出。               参考代码:#include <stdio.h> int main() { int n, i, j,……

检查金币 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] ……