题解列表
编写题解 2930: 派
摘要:解题思路:注意事项:找了好久的原因,才知道应该这样来算pi(1)double pai=acos(-1.0);(2)double eps=1e-5;参考代码:#include<stdio.h>#incl……
do while循环 + fabs( )浮点数绝对值函数的使用,非常简单
摘要: #include
#include
int main()
{
double x, m, n;
scanf("%lf", &x);
n = x;
do {
……
strlen函数在visual stdio2022里是算上\n的在他这编译器上则不算害我搞了好久
摘要:解题思路:注意事项:参考代码:在这里的编译器#include<stdio.h>#include<string.h>void main(){ char a[101]={0}; char d[……
汽车与走路(非常简单版)
摘要:解题思路:咱只要比较时间,因此用分支来判断情况就欧克注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); i……
python 倒数第二
摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): i=int(input()) a=list(map(int,input().split())……