codefashion @ 2024-09-21 09:01:25
#include<stdio.h>
#include <math.h>
int main()
{
int T,a;
double m = 3.141593;
scanf("%d", &T);
if (T == 1)
printf("I love Luogu!\n");
else if (T == 2)
printf("%d %d\n", 6, 4);
else if (T == 3)
printf("%d\n%d\n%d\n", 3, 12, 2);
else if (T == 4)
printf("%3f\n", 500 / 3);
else if (T == 5)
printf("%d\n", (260 + 220) / (12 + 20));
else if (T == 6)
printf("%lf\n", sqrt(6 * 6 + 9 * 9));
else if (T == 7)
printf("%d\n%d\n%d\n", 110, 90, 0);
else if (T == 8)
printf("%lf\n%lf\nlf\n",2*5*m,5*5*m,m*5*5*5*3/4);
else if (T == 9)
printf("%d\n", 22);
else if (T == 10)
printf("%d\n", 9);
else if (T == 11)
printf("%lf\n", 100 / 3);
else if (T == 12)
printf("%d\nR\n", 13);
else if (T == 13)
{
a = pow(4*4*m+10*10*m,1.0/3);
printf("%d\n", a);
}
else if (T == 14)
printf("%d\n", 50);
return 0;
}
by STRLEN_SUIYUHAN @ 2024-09-21 09:12:03
@codefashion
else if (T == 4) printf ("%.3lf\n", 500.0 / 3.0);
else if (T == 6) cout << sqrt (6 * 6 + 9 * 9) << endl;
else if (T == 8) {
double const pi = 3.141593;
double const r = 5;
cout << pi * r * 2 << endl << pi * r * r << endl << 4.0 / 3 * pi * r * r * r << endl;
}
else if (T == 11) cout << 100.0 / (8 - 5) << endl;
else if (T == 13) {
double const pi = 3.141593;
double V = pi * 4 * 4 * 4 * 4 / 3 + pi * 10 * 10 * 10 * 4 / 3;
cout << floor (pow (V, 1.0 / 3)) << endl;
} ```
by codefashion @ 2024-09-25 16:59:05
@STRLEN_SUIYUHAN 好的,谢谢大佬