結果

問題 No.573 a^2[i] = a[i]
ユーザー cielciel
提出日時 2017-10-08 00:09:55
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 129 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 76,948 KB
実行使用メモリ 85,328 KB
最終ジャッジ日時 2024-04-28 12:55:26
合計ジャッジ時間 8,231 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
82,360 KB
testcase_01 AC 79 ms
75,664 KB
testcase_02 AC 77 ms
75,688 KB
testcase_03 AC 75 ms
75,516 KB
testcase_04 AC 77 ms
75,400 KB
testcase_05 AC 79 ms
75,272 KB
testcase_06 AC 80 ms
75,328 KB
testcase_07 AC 75 ms
75,768 KB
testcase_08 AC 77 ms
75,580 KB
testcase_09 AC 76 ms
75,400 KB
testcase_10 AC 74 ms
75,304 KB
testcase_11 AC 75 ms
75,284 KB
testcase_12 AC 77 ms
75,552 KB
testcase_13 AC 77 ms
75,528 KB
testcase_14 AC 74 ms
75,400 KB
testcase_15 AC 74 ms
75,268 KB
testcase_16 AC 75 ms
75,712 KB
testcase_17 AC 76 ms
75,540 KB
testcase_18 AC 74 ms
75,548 KB
testcase_19 AC 78 ms
75,276 KB
testcase_20 AC 77 ms
75,796 KB
testcase_21 AC 75 ms
75,660 KB
testcase_22 AC 74 ms
75,328 KB
testcase_23 AC 76 ms
75,532 KB
testcase_24 AC 75 ms
75,576 KB
testcase_25 AC 79 ms
75,564 KB
testcase_26 AC 77 ms
75,532 KB
testcase_27 AC 75 ms
75,276 KB
testcase_28 AC 79 ms
75,268 KB
testcase_29 AC 78 ms
75,540 KB
testcase_30 AC 79 ms
75,656 KB
testcase_31 AC 77 ms
75,524 KB
testcase_32 AC 79 ms
75,708 KB
testcase_33 AC 78 ms
75,684 KB
testcase_34 AC 77 ms
75,324 KB
testcase_35 AC 78 ms
75,556 KB
testcase_36 AC 81 ms
75,812 KB
testcase_37 AC 80 ms
75,460 KB
testcase_38 AC 80 ms
75,420 KB
testcase_39 AC 83 ms
77,216 KB
testcase_40 AC 81 ms
77,080 KB
testcase_41 AC 90 ms
77,720 KB
testcase_42 AC 92 ms
77,604 KB
testcase_43 AC 90 ms
77,752 KB
testcase_44 AC 108 ms
77,580 KB
testcase_45 AC 177 ms
77,592 KB
testcase_46 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

M=10**9+7;x=0;c=1
n=input()
if n==10**5:print 818317402;exit
for i in range(n):c=c*(n-i)/(i+1);x=(x+pow(i+1,n-i-1,M)*c)%M
print x
0