题解列表

筛选

编写题解 2811: 救援

摘要:解题思路:注意事项:参考代码:#include <stdio.h>   #include <math.h>   #include <stdlib.h>     // 计算时间的函数   floa……

运用第三方排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,x; scanf ("%d%d%d",&a,&b,&c); if (a>b) x = a; ……

欢迎交流指正

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main() { int a[100], m, n,s……

完数的判断

摘要:#include<stdio.h>int main(){    int i,j,N;    int l;    int m;    int a[100];    int sum=0;    scanf……

题解 1764: 循环入门练习1

摘要:解题思路:利用高斯的求数方法,没想到对了。注意事项:直接输出结果就行参考代码:#include <bits/stdc++.h>using namespace std;int main(){    co……

恒定义找最大数

摘要:解题思路:根据题目为三个数利用三目运算符求最大值注意事项:函数:注意返回值应该为浮点型参考代码:#include<stdio.h>#define MAX(a,b) (a>b?a:b)float   c……

恒定义之闰年判断[c]

摘要:解题思路:  闰年 判断y%4==0&&y%100!=0||y%400==0?&#39;L&#39;:&#39;N&#39;     注意事项:参考代码:    #include<stdio.h>  ……