結果

問題 No.1272 珍しい級数
ユーザー 遭難者遭難者
提出日時 2020-09-20 16:43:39
言語 Java17
(openjdk 17.0.1)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 2,218 ms
使用メモリ 37,972 KB
最終ジャッジ日時 2023-02-20 15:34:06
合計ジャッジ時間 9,521 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 98 ms
37,652 KB
testcase_01 AC 102 ms
37,532 KB
testcase_02 AC 107 ms
37,576 KB
testcase_03 AC 102 ms
37,848 KB
testcase_04 AC 102 ms
37,504 KB
testcase_05 AC 99 ms
37,452 KB
testcase_06 AC 102 ms
37,964 KB
testcase_07 AC 101 ms
37,452 KB
testcase_08 AC 99 ms
37,604 KB
testcase_09 AC 97 ms
37,676 KB
testcase_10 AC 102 ms
37,580 KB
testcase_11 AC 96 ms
37,744 KB
testcase_12 AC 102 ms
37,972 KB
testcase_13 AC 100 ms
37,624 KB
testcase_14 AC 103 ms
37,724 KB
testcase_15 AC 99 ms
37,592 KB
testcase_16 AC 102 ms
37,588 KB
testcase_17 AC 102 ms
37,740 KB
testcase_18 AC 101 ms
37,464 KB
testcase_19 AC 100 ms
37,712 KB
testcase_20 AC 99 ms
37,476 KB
testcase_21 AC 99 ms
37,608 KB
testcase_22 AC 102 ms
37,704 KB
testcase_23 AC 97 ms
37,588 KB
testcase_24 AC 100 ms
37,544 KB
testcase_25 AC 96 ms
37,420 KB
testcase_26 AC 101 ms
37,452 KB
testcase_27 AC 95 ms
37,724 KB
testcase_28 AC 97 ms
37,680 KB
testcase_29 AC 101 ms
37,608 KB
testcase_30 AC 97 ms
37,720 KB
testcase_31 AC 97 ms
37,448 KB
testcase_32 AC 97 ms
37,684 KB
testcase_33 AC 102 ms
37,656 KB
testcase_34 AC 96 ms
37,588 KB
testcase_35 AC 96 ms
37,676 KB
testcase_36 AC 96 ms
37,664 KB
testcase_37 AC 100 ms
37,552 KB
testcase_38 AC 101 ms
37,472 KB
testcase_39 AC 101 ms
37,772 KB
testcase_40 AC 102 ms
37,848 KB
testcase_41 AC 97 ms
37,600 KB
testcase_42 AC 99 ms
37,484 KB
testcase_43 AC 101 ms
37,444 KB
testcase_44 AC 99 ms
37,456 KB
testcase_45 AC 102 ms
37,688 KB
testcase_46 AC 95 ms
37,620 KB
testcase_47 AC 101 ms
37,760 KB
testcase_48 AC 99 ms
37,476 KB
testcase_49 AC 96 ms
37,548 KB
testcase_50 AC 100 ms
37,756 KB
testcase_51 AC 95 ms
37,848 KB
testcase_52 AC 97 ms
37,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
public class Main {
    public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = sc.nextInt();
		double yono = 0;
		for(int i = 1 ; i <= 20 ; i++){
			yono += Math.sin(i * n) / (long)Math.pow(i , i);
		}
		ou.println(yono);
		ou.flush();
	}
}
0