题解列表

筛选

IP判断 (C++代码)

摘要:#include<bits/stdc++.h> using namespace std; const int Max=300; int main() {     char str[Max],……

查找最大元素 (C语言代码)

摘要:解题思路:先求出最大字符,然后输出字符串时,再判断字符串中的字符是否是最大字符,是则输出(max)即可。注意事项:参考代码:#include <stdio.h> int main() { ch……

奖学金 (C++代码)

摘要:解题思路: 利用STL中的sort函数即可很简单实现。(1)先按照总分排序;(2)总分相同再按照语文排序;(3)语文相同,则按照学号排序。(4)输出前5项即可。参考代码:#include <bits/……

求圆的面积 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double n,sum; scanf("%lf",&n); sum=pow(n……