QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#509922#8316. Random PermutationRahabAC ✓15ms10932kbPython373b2024-08-08 19:50:132024-08-08 19:50:14

Judging History

你现在查看的是最新测评结果

  • [2024-08-08 19:50:14]
  • 评测
  • 测评结果:AC
  • 用时:15ms
  • 内存:10932kb
  • [2024-08-08 19:50:13]
  • 提交

answer

import math
n = int(input())
print((math.factorial(n) ** 2) / (n ** n))

詳細信息

Test #1:

score: 100
Accepted
time: 15ms
memory: 10760kb

input:

2

output:

1.0

result:

ok found '1.000000000', expected '1.000000000', error '0.000000000'

Test #2:

score: 0
Accepted
time: 8ms
memory: 10828kb

input:

3

output:

1.3333333333333333

result:

ok found '1.333333333', expected '1.333333333', error '0.000000000'

Test #3:

score: 0
Accepted
time: 11ms
memory: 10716kb

input:

50

output:

1.0414766276294131e+44

result:

ok found '104147662762941312066099264666008306912854016.000000000', expected '104147662762941312066099264666008306912854016.000000000', error '0.000000000'

Test #4:

score: 0
Accepted
time: 15ms
memory: 10728kb

input:

1

output:

1.0

result:

ok found '1.000000000', expected '1.000000000', error '0.000000000'

Test #5:

score: 0
Accepted
time: 7ms
memory: 10772kb

input:

4

output:

2.25

result:

ok found '2.250000000', expected '2.250000000', error '0.000000000'

Test #6:

score: 0
Accepted
time: 14ms
memory: 10752kb

input:

5

output:

4.608

result:

ok found '4.608000000', expected '4.608000000', error '0.000000000'

Test #7:

score: 0
Accepted
time: 15ms
memory: 10740kb

input:

6

output:

11.11111111111111

result:

ok found '11.111111111', expected '11.111111111', error '0.000000000'

Test #8:

score: 0
Accepted
time: 5ms
memory: 10764kb

input:

7

output:

30.844291069197357

result:

ok found '30.844291069', expected '30.844291069', error '0.000000000'

Test #9:

score: 0
Accepted
time: 3ms
memory: 10772kb

input:

8

output:

96.8994140625

result:

ok found '96.899414062', expected '96.899414062', error '0.000000000'

Test #10:

score: 0
Accepted
time: 15ms
memory: 10736kb

input:

9

output:

339.8939863503192

result:

ok found '339.893986350', expected '339.893986350', error '0.000000000'

Test #11:

score: 0
Accepted
time: 12ms
memory: 10736kb

input:

10

output:

1316.818944

result:

ok found '1316.818944000', expected '1316.818944000', error '0.000000000'

Test #12:

score: 0
Accepted
time: 14ms
memory: 10748kb

input:

11

output:

5584.597779781706

result:

ok found '5584.597779782', expected '5584.597779782', error '0.000000000'

Test #13:

score: 0
Accepted
time: 14ms
memory: 10824kb

input:

12

output:

25733.506944444445

result:

ok found '25733.506944444', expected '25733.506944444', error '0.000000000'

Test #14:

score: 0
Accepted
time: 14ms
memory: 10764kb

input:

13

output:

128025.6686655821

result:

ok found '128025.668665582', expected '128025.668665582', error '0.000000000'

Test #15:

score: 0
Accepted
time: 11ms
memory: 10700kb

input:

14

output:

683949.7649579911

result:

ok found '683949.764957991', expected '683949.764957991', error '0.000000000'

Test #16:

score: 0
Accepted
time: 10ms
memory: 10652kb

input:

15

output:

3905083.606526028

result:

ok found '3905083.606526028', expected '3905083.606526028', error '0.000000000'

Test #17:

score: 0
Accepted
time: 8ms
memory: 10824kb

input:

16

output:

23731187.19206923

result:

ok found '23731187.192069229', expected '23731187.192069229', error '0.000000000'

Test #18:

score: 0
Accepted
time: 14ms
memory: 10764kb

input:

17

output:

152934464.54970804

result:

ok found '152934464.549708039', expected '152934464.549708039', error '0.000000000'

Test #19:

score: 0
Accepted
time: 15ms
memory: 10740kb

input:

18

output:

1041782238.1487705

result:

ok found '1041782238.148770452', expected '1041782238.148770452', error '0.000000000'

Test #20:

score: 0
Accepted
time: 14ms
memory: 10828kb

input:

19

output:

7479469995.730518

result:

ok found '7479469995.730518341', expected '7479469995.730518341', error '0.000000000'

Test #21:

score: 0
Accepted
time: 12ms
memory: 10648kb

input:

20

output:

56448098958.87306

result:

ok found '56448098958.873062134', expected '56448098958.873062134', error '0.000000000'

Test #22:

score: 0
Accepted
time: 11ms
memory: 10736kb

input:

21

output:

446768591341.2464

result:

ok found '446768591341.246398926', expected '446768591341.246398926', error '0.000000000'

Test #23:

score: 0
Accepted
time: 9ms
memory: 10700kb

input:

22

output:

3700276748921.9355

result:

ok found '3700276748921.935546875', expected '3700276748921.935546875', error '0.000000000'

Test #24:

score: 0
Accepted
time: 5ms
memory: 10732kb

input:

23

output:

32007269639380.543

result:

ok found '32007269639380.542968750', expected '32007269639380.542968750', error '0.000000000'

Test #25:

score: 0
Accepted
time: 14ms
memory: 10728kb

input:

24

output:

288630046441757.7

result:

ok found '288630046441757.687500000', expected '288630046441757.687500000', error '0.000000000'

Test #26:

score: 0
Accepted
time: 15ms
memory: 10836kb

input:

25

output:

2708888570942365.0

result:

ok found '2708888570942365.000000000', expected '2708888570942365.000000000', error '0.000000000'

Test #27:

score: 0
Accepted
time: 12ms
memory: 10800kb

input:

26

output:

2.6419890078249484e+16

result:

ok found '26419890078249484.000000000', expected '26419890078249484.000000000', error '0.000000000'

Test #28:

score: 0
Accepted
time: 12ms
memory: 10892kb

input:

27

output:

2.6738925402956166e+17

result:

ok found '267389254029561664.000000000', expected '267389254029561664.000000000', error '0.000000000'

Test #29:

score: 0
Accepted
time: 10ms
memory: 10804kb

input:

28

output:

2.804508541393392e+18

result:

ok found '2804508541393392128.000000000', expected '2804508541393392128.000000000', error '0.000000000'

Test #30:

score: 0
Accepted
time: 10ms
memory: 10800kb

input:

29

output:

3.0446382653772706e+19

result:

ok found '30446382653772705792.000000000', expected '30446382653772705792.000000000', error '0.000000000'

Test #31:

score: 0
Accepted
time: 11ms
memory: 10824kb

input:

30

output:

3.41729529206734e+20

result:

ok found '341729529206733996032.000000000', expected '341729529206733996032.000000000', error '0.000000000'

Test #32:

score: 0
Accepted
time: 14ms
memory: 10888kb

input:

31

output:

3.961238839958901e+21

result:

ok found '3961238839958900834304.000000000', expected '3961238839958900834304.000000000', error '0.000000000'

Test #33:

score: 0
Accepted
time: 14ms
memory: 10824kb

input:

32

output:

4.7374450754549285e+22

result:

ok found '47374450754549285126144.000000000', expected '47374450754549285126144.000000000', error '0.000000000'

Test #34:

score: 0
Accepted
time: 11ms
memory: 10836kb

input:

33

output:

5.839979975059776e+23

result:

ok found '583997997505977616695296.000000000', expected '583997997505977616695296.000000000', error '0.000000000'

Test #35:

score: 0
Accepted
time: 11ms
memory: 10888kb

input:

34

output:

7.413888129961784e+24

result:

ok found '7413888129961783937990656.000000000', expected '7413888129961783937990656.000000000', error '0.000000000'

Test #36:

score: 0
Accepted
time: 15ms
memory: 10740kb

input:

35

output:

9.684645860257507e+25

result:

ok found '96846458602575065914540032.000000000', expected '96846458602575065914540032.000000000', error '0.000000000'

Test #37:

score: 0
Accepted
time: 9ms
memory: 10768kb

input:

36

output:

1.3007093754008958e+27

result:

ok found '1300709375400895815039844352.000000000', expected '1300709375400895815039844352.000000000', error '0.000000000'

Test #38:

score: 0
Accepted
time: 14ms
memory: 10832kb

input:

37

output:

1.7947747702888874e+28

result:

ok found '17947747702888873668613505024.000000000', expected '17947747702888873668613505024.000000000', error '0.000000000'

Test #39:

score: 0
Accepted
time: 6ms
memory: 10768kb

input:

38

output:

2.5425193577967753e+29

result:

ok found '254251935779677532493205995520.000000000', expected '254251935779677532493205995520.000000000', error '0.000000000'

Test #40:

score: 0
Accepted
time: 14ms
memory: 10792kb

input:

39

output:

3.6953066164649263e+30

result:

ok found '3695306616464926284798639472640.000000000', expected '3695306616464926284798639472640.000000000', error '0.000000000'

Test #41:

score: 0
Accepted
time: 8ms
memory: 10892kb

input:

40

output:

5.506688157671319e+31

result:

ok found '55066881576713192737375766183936.000000000', expected '55066881576713192737375766183936.000000000', error '0.000000000'

Test #42:

score: 0
Accepted
time: 4ms
memory: 10816kb

input:

41

output:

8.408523150790471e+32

result:

ok found '840852315079047104771609759580160.000000000', expected '840852315079047104771609759580160.000000000', error '0.000000000'

Test #43:

score: 0
Accepted
time: 14ms
memory: 10832kb

input:

42

output:

1.3148803459163263e+34

result:

ok found '13148803459163262604756802370273280.000000000', expected '13148803459163262604756802370273280.000000000', error '0.000000000'

Test #44:

score: 0
Accepted
time: 8ms
memory: 10932kb

input:

43

output:

2.1045039817893126e+35

result:

ok found '210450398178931261673855881341566976.000000000', expected '210450398178931261673855881341566976.000000000', error '0.000000000'

Test #45:

score: 0
Accepted
time: 9ms
memory: 10932kb

input:

44

output:

3.445727502538221e+36

result:

ok found '3445727502538221016528518005104050176.000000000', expected '3445727502538221016528518005104050176.000000000', error '0.000000000'

Test #46:

score: 0
Accepted
time: 15ms
memory: 10904kb

input:

45

output:

5.768469521778955e+37

result:

ok found '57684695217789551280657888801636483072.000000000', expected '57684695217789551280657888801636483072.000000000', error '0.000000000'

Test #47:

score: 0
Accepted
time: 9ms
memory: 10816kb

input:

46

output:

9.869135875063829e+38

result:

ok found '986913587506382884615221777819934654464.000000000', expected '986913587506382884615221777819934654464.000000000', error '0.000000000'

Test #48:

score: 0
Accepted
time: 5ms
memory: 10804kb

input:

47

output:

1.724788224460826e+40

result:

ok found '17247882244608259490744012632750869708800.000000000', expected '17247882244608259490744012632750869708800.000000000', error '0.000000000'

Test #49:

score: 0
Accepted
time: 10ms
memory: 10832kb

input:

48

output:

3.077784315836675e+41

result:

ok found '307778431583667487609967619047589037473792.000000000', expected '307778431583667487609967619047589037473792.000000000', error '0.000000000'

Test #50:

score: 0
Accepted
time: 6ms
memory: 10824kb

input:

49

output:

5.605338120585242e+42

result:

ok found '5605338120585241642854985018985043342655488.000000000', expected '5605338120585241642854985018985043342655488.000000000', error '0.000000000'

Extra Test:

score: 0
Extra Test Passed