UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#204932#3639. 旋转jane100364ms1252kbC++11382b2024-06-16 09:22:022024-06-16 12:00:44

answer

#include<bits/stdc++.h>
using namespace std;
const double pi=3.1415926;
int t;
double l1,l2,a,b,ans;
int main(){
    scanf("%d",&t);
    while(t--){
        ans=0;
        scanf("%lf%lf%lf%lf",&l1,&l2,&a,&b);
        l1+=l2;
        a*=2;
        b*=2;
        ans=l1*l1*a/360.0*pi;
        ans+=l2*l2*b/360.0*pi;
        printf("%lf\n",ans);
    }
    return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 30ms
memory: 1248kb

input:

20000
985040437 963837006 74 0
562320397 456498961 21 0
616458849 43215539 12 0
967049313 962181597 ...

output:

4905441917256256512.000000
380444255796150528.000000
91141852567470288.000000
3572798083440261632.00...

result:

ok 20000 numbers

Test #2:

score: 10
Accepted
time: 33ms
memory: 1248kb

input:

20000
998940834 948507270 39 0
933612816 738803143 75 0
989595960 922817781 62 0
868406687 821461860...

output:

2581509656157422592.000000
3661231834145836032.000000
3957607867429105152.000000
1395536618708844544...

result:

ok 20000 numbers

Test #3:

score: 10
Accepted
time: 34ms
memory: 1248kb

input:

20000
956647545 492986047 61 0
900090489 726140030 63 0
486268470 242611510 4 0
878680485 825966314 ...

output:

2237297223583961600.000000
2907917786130737152.000000
37089364745343960.000000
3347265107043831808.0...

result:

ok 20000 numbers

Test #4:

score: 10
Accepted
time: 33ms
memory: 1248kb

input:

20000
740766689 37464824 26 0
767574952 8444212 25 0
194224718 122213751 37 0
998454085 980213872 21...

output:

274832655191940064.000000
262761820216284448.000000
64663265616066720.000000
1434968925485597952.000...

result:

ok 20000 numbers

Test #5:

score: 10
Accepted
time: 30ms
memory: 1252kb

input:

20000
494994399 22135089 65 0
881309560 585715690 5 0
640258014 442007480 70 0
694583557 279685622 5...

output:

303381659688599040.000000
187811656086659552.000000
1431011171562462720.000000
844900299397977088.00...

result:

ok 20000 numbers

Test #6:

score: 10
Accepted
time: 31ms
memory: 1252kb

input:

20000
670439397 566613866 0 0
955838848 807238901 0 1
579792737 573052576 0 2
375536653 299976225 0 ...

output:

0.000000
11373169851423554.000000
11462947255427008.000000
4711642015955803.000000
49554700454706.18...

result:

ok 20000 numbers

Test #7:

score: 10
Accepted
time: 30ms
memory: 1252kb

input:

20000
970986894 111092642 0 0
924786555 855455593 0 1
901883890 855356759 0 2
977087521 916311776 0 ...

output:

0.000000
12772393801617692.000000
25538885373558076.000000
43962780346957248.000000
8378837566316301...

result:

ok 20000 numbers

Test #8:

score: 10
Accepted
time: 49ms
memory: 1252kb

input:

20000
327828869 95762907 0 0
693362959 493606877 0 1
536594286 432628237 0 2
994989405 972838816 0 3...

output:

0.000000
4252455362962269.000000
6533367373569436.000000
49554191625375216.000000
3566989124078711.0...

result:

ok 20000 numbers

Test #9:

score: 10
Accepted
time: 45ms
memory: 1252kb

input:

20000
908088980 640241684 0 0
673113586 541823569 0 1
809627257 714932419 0 2
873397892 734398560 0 ...

output:

0.000000
5123811516501921.000000
17841745390742994.000000
28239841065785112.000000
20799626508741688...

result:

ok 20000 numbers

Test #10:

score: 10
Accepted
time: 49ms
memory: 1248kb

input:

20000
883308629 319645572 0 0
844065074 812547177 0 1
821814170 355467212 0 2
815826946 807957797 0 ...

output:

0.000000
11523237997618294.000000
4410689154609893.000000
34180307667262544.000000
4013910012825792....

result:

ok 20000 numbers

Extra Test:

score: 0
Extra Test Passed