题解列表

筛选

C语言 结构体之时间设计&

摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct calendar{     int year;    int month;    int day;}date, * p;……

1118: Tom数 (C)

摘要:```c #include #include int main(void) { long long len, num, sum=0; int i; while (~scan……

有点麻烦。。。。。。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n,i;    int arr[4],a[4];    for(n……

最基本的方法

摘要:解题思路:计算矩阵最值,首先去考虑如何输入,最基本的是2个for循环,最后比较也是使用For循环,在定义2个变量去储存变量(下标),但是使用的数组,所以得到结果需要+1;注意事项:数组参考代码:#in……

1127: C语言训练-尼科彻斯定理

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main() {           int m,i,sum,n=1;          s……

我认为较简单的一种解法

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

2916: 谁考了第k名

摘要:```cpp #include using namespace std; struct s { int xuehao; double chengji; }; int m……

2921: 整数奇偶排序

摘要:```cpp #include using namespace std; int main() { int odd[10],even[10],num,i,j,l=0,r=0; ……