题解列表

筛选

靠数学公式

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int M,N; scanf("%d%d",&M,&N); float h,s;……

C语言 自定义函数之字符串反转&

摘要:解题思路:注意事项:本写法没有参考价值,仅供纪念,用上strlen(计算字符串的实际长度不包括末尾的&#39;\0&#39;)参考代码:#include<stdio.h>#define Long 20……

实数的打印JAVA

摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat;import java.util.Arrays;import java.util.Scanner;publi……

2206: 素数求和

摘要: #include using namespace std; inline int ss_(int a);//内联函数减少运行时间 int main() ……

分段函数 二级C语言

摘要:解题思路: 注意事项:保留两位,double类型。用到平方根函数sqrt()、绝对值函数fabs()、幂函数pow()。参考代码:#include<stdio.h> #include<math.h>……

汪汪和打针

摘要:解题思路:注意事项:有点漏洞,不过可以过这题参考代码:#include<iostream>using namespace std;int m = 120, l = 100;///定义疫苗的价钱int ……