結果

問題 No.573 a^2[i] = a[i]
ユーザー cielciel
提出日時 2017-10-08 00:10:42
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 180 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 2,177 ms
コンパイル使用メモリ 76,544 KB
実行使用メモリ 77,952 KB
最終ジャッジ日時 2024-04-28 12:55:35
合計ジャッジ時間 5,709 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
75,008 KB
testcase_01 AC 91 ms
75,520 KB
testcase_02 AC 91 ms
75,264 KB
testcase_03 AC 90 ms
75,392 KB
testcase_04 AC 92 ms
75,404 KB
testcase_05 AC 91 ms
75,008 KB
testcase_06 AC 89 ms
75,648 KB
testcase_07 AC 88 ms
75,392 KB
testcase_08 AC 90 ms
75,520 KB
testcase_09 AC 89 ms
75,136 KB
testcase_10 AC 90 ms
75,580 KB
testcase_11 AC 90 ms
75,648 KB
testcase_12 AC 89 ms
75,648 KB
testcase_13 AC 89 ms
75,648 KB
testcase_14 AC 89 ms
75,552 KB
testcase_15 AC 91 ms
75,136 KB
testcase_16 AC 88 ms
75,520 KB
testcase_17 AC 89 ms
75,264 KB
testcase_18 AC 91 ms
75,520 KB
testcase_19 AC 87 ms
75,392 KB
testcase_20 AC 88 ms
75,636 KB
testcase_21 AC 86 ms
75,008 KB
testcase_22 AC 88 ms
75,136 KB
testcase_23 AC 90 ms
75,008 KB
testcase_24 AC 89 ms
75,008 KB
testcase_25 AC 89 ms
75,392 KB
testcase_26 AC 78 ms
75,264 KB
testcase_27 AC 78 ms
75,648 KB
testcase_28 AC 83 ms
75,392 KB
testcase_29 AC 82 ms
75,544 KB
testcase_30 AC 78 ms
75,648 KB
testcase_31 AC 78 ms
75,424 KB
testcase_32 AC 80 ms
75,520 KB
testcase_33 AC 78 ms
75,648 KB
testcase_34 AC 80 ms
75,776 KB
testcase_35 AC 77 ms
75,392 KB
testcase_36 AC 79 ms
75,136 KB
testcase_37 AC 80 ms
75,296 KB
testcase_38 AC 76 ms
75,276 KB
testcase_39 AC 80 ms
76,800 KB
testcase_40 AC 83 ms
77,104 KB
testcase_41 AC 85 ms
77,312 KB
testcase_42 AC 91 ms
77,428 KB
testcase_43 AC 94 ms
77,952 KB
testcase_44 AC 108 ms
77,824 KB
testcase_45 AC 180 ms
77,568 KB
testcase_46 AC 76 ms
75,644 KB
権限があれば一括ダウンロードができます

ソースコード

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