結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
82,472 KB
testcase_01 AC 75 ms
75,148 KB
testcase_02 AC 76 ms
75,128 KB
testcase_03 AC 76 ms
75,260 KB
testcase_04 AC 76 ms
75,556 KB
testcase_05 AC 75 ms
75,140 KB
testcase_06 AC 78 ms
75,428 KB
testcase_07 AC 75 ms
75,292 KB
testcase_08 AC 77 ms
75,404 KB
testcase_09 AC 78 ms
75,392 KB
testcase_10 AC 78 ms
75,436 KB
testcase_11 AC 76 ms
75,180 KB
testcase_12 AC 77 ms
75,540 KB
testcase_13 AC 76 ms
75,380 KB
testcase_14 AC 76 ms
75,152 KB
testcase_15 AC 75 ms
75,284 KB
testcase_16 AC 77 ms
75,196 KB
testcase_17 AC 77 ms
75,436 KB
testcase_18 AC 77 ms
75,544 KB
testcase_19 AC 76 ms
75,180 KB
testcase_20 AC 74 ms
75,292 KB
testcase_21 AC 75 ms
75,296 KB
testcase_22 AC 77 ms
75,056 KB
testcase_23 AC 75 ms
75,560 KB
testcase_24 AC 74 ms
75,144 KB
testcase_25 AC 77 ms
75,244 KB
testcase_26 AC 75 ms
75,144 KB
testcase_27 AC 75 ms
75,140 KB
testcase_28 AC 74 ms
75,428 KB
testcase_29 AC 78 ms
75,528 KB
testcase_30 AC 78 ms
75,668 KB
testcase_31 AC 79 ms
75,296 KB
testcase_32 AC 78 ms
75,660 KB
testcase_33 AC 76 ms
75,404 KB
testcase_34 AC 80 ms
75,808 KB
testcase_35 AC 80 ms
75,080 KB
testcase_36 AC 79 ms
75,140 KB
testcase_37 AC 76 ms
75,148 KB
testcase_38 AC 81 ms
75,664 KB
testcase_39 AC 101 ms
76,440 KB
testcase_40 AC 84 ms
76,964 KB
testcase_41 AC 85 ms
77,968 KB
testcase_42 AC 89 ms
77,472 KB
testcase_43 AC 92 ms
77,452 KB
testcase_44 AC 106 ms
77,836 KB
testcase_45 AC 181 ms
77,836 KB
testcase_46 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

M=10**9+7;x=0;c=1
n=input()
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