1 条题解

  • 0
    @ 2025-4-7 21:41:58

    C :

    # include <stdio.h>
    # include <math.h>
    # define PI 3.141592658979
    
    int main()
    {
        double a, x, y;
        scanf("%lf", &a);
        x = (a / 180) * PI;
        y = fabs(sin(x * x)) / (1 - cos(x));
        printf("%lf", y);
        return 0;
    }
    
    

    C++ :

    #include<iostream>
    using namespace std;
    #include<cmath>
    int main()
    {
    	const double PI=3.14159265358979;
    	double x,y;
    	cin>>x;
    	x=x*PI/180;
    	y=abs(sin(x*x))/(1-cos(x));
    	cout<<y;
    	return 0;
    }
    
    • 1

    信息

    ID
    2158
    时间
    1000ms
    内存
    30MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者