結果

問題 No.1466 I am not genius.
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-04-02 22:14:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 761 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 87,376 KB
実行使用メモリ 72,368 KB
最終ジャッジ日時 2023-08-25 12:27:06
合計ジャッジ時間 3,519 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 69 ms
72,140 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from sys import stdin
import math

def nPr(n,r):
    if n < r:
        return 0
    return math.factorial(n) // math.factorial(n-r)

#x = float(input())

a = -1
b = 2**2
c = 1123
d = 21460

g = 2
h = 99
i = 1103
j = 26381
k = 1
l = 882

#print (0)


f1 = 0
for n in range(4):

    si = (a**n) * math.factorial(b) * nPr(b*n,math.gcd(d,l)**2) * (c+d*n)
    bo = (l**(n+k)) * ((49/22*b*h) ** n ) * (((2**(g**n)) * math.factorial(n))**b)

    f1 += si / bo
    #print (si / bo)
    #print (f1)

f2 = 0
for n in range(4):

    si = math.factorial(b*n) * (i+j*n)
    bo = (((22/49*l)**n) * math.factorial(n))**b

    f2 += si / bo

f2 *= ( (g**3)/(h**(g**g)) )**0.5
f2 = f2 ** a

#print (f2)

print (f1,f2,file=sys.stderr)
print (float(input()) * f1 * f2)
0