题号:NC207635
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld
题目描述
Softmax function is a widely used model in the multi-class classification problem. Assuming that you have an array V, the length of V is n, Vi is the i-th element of the V, So the softmax-value of this Vi is
Now given an array V, and please compute the softmax-value of all of V. The results should keep 6 decimal places.
输入描述:
There are 2 lines. The first line is n(1<=n<=1000), the length of the array, the second line has n integers, are Vi(0<=Vi<10).
输出描述:
Output 1 line, the softmax-value of V, The results should keep 6 decimal places.
示例1
输出
复制
0.729558 0.268389 0.001808 0.000245