题解列表

筛选

2897: 神奇的幻方

摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> using namespace std; ……

校门外的树

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int L,M; scanf("%d%d",&L,&M); int n=L+1,sum=0;  //n:树量  ……

[编程入门]数字逆序输出

摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int[] arr = new int[10]; for (int i = 0; i < a……

[编程入门]数组插入处理

摘要:解题思路:关键在于n后面数的替换,可定义两个相同数组来实现替换。注意事项:参考代码:# includeint main(){ int n; int a[10]; int b[9]; for (int ……

[编程入门]宏定义的练习

摘要:解题思路:定义一个宏定义,求取a b的余数注意事项:取余符号是%参考代码:#include<stdio.h>#define reasu    (a%b)main(){    int a,b;    s……