結果

問題 No.1272 珍しい級数
ユーザー 遭難者遭難者
提出日時 2020-09-20 16:43:39
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 3,428 ms
コンパイル使用メモリ 71,604 KB
実行使用メモリ 57,940 KB
最終ジャッジ日時 2023-09-28 13:15:53
合計ジャッジ時間 12,023 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
54,204 KB
testcase_01 AC 121 ms
55,556 KB
testcase_02 AC 123 ms
55,684 KB
testcase_03 AC 123 ms
56,228 KB
testcase_04 AC 123 ms
56,272 KB
testcase_05 AC 124 ms
55,844 KB
testcase_06 AC 125 ms
57,940 KB
testcase_07 AC 122 ms
56,228 KB
testcase_08 AC 123 ms
56,184 KB
testcase_09 AC 124 ms
56,232 KB
testcase_10 AC 120 ms
55,544 KB
testcase_11 AC 123 ms
56,160 KB
testcase_12 AC 123 ms
56,080 KB
testcase_13 AC 127 ms
56,164 KB
testcase_14 AC 122 ms
56,160 KB
testcase_15 AC 122 ms
55,976 KB
testcase_16 AC 123 ms
55,760 KB
testcase_17 AC 124 ms
55,772 KB
testcase_18 AC 125 ms
55,736 KB
testcase_19 AC 121 ms
56,176 KB
testcase_20 AC 123 ms
55,936 KB
testcase_21 AC 124 ms
56,060 KB
testcase_22 AC 126 ms
56,484 KB
testcase_23 AC 124 ms
55,688 KB
testcase_24 AC 124 ms
55,796 KB
testcase_25 AC 121 ms
55,956 KB
testcase_26 AC 123 ms
56,188 KB
testcase_27 AC 124 ms
56,216 KB
testcase_28 AC 123 ms
56,060 KB
testcase_29 AC 121 ms
56,000 KB
testcase_30 AC 123 ms
56,012 KB
testcase_31 AC 125 ms
56,084 KB
testcase_32 AC 123 ms
56,380 KB
testcase_33 AC 123 ms
55,484 KB
testcase_34 AC 123 ms
56,140 KB
testcase_35 AC 125 ms
56,000 KB
testcase_36 AC 124 ms
56,292 KB
testcase_37 AC 124 ms
55,988 KB
testcase_38 AC 124 ms
55,696 KB
testcase_39 AC 122 ms
55,808 KB
testcase_40 AC 125 ms
56,000 KB
testcase_41 AC 125 ms
56,196 KB
testcase_42 AC 122 ms
56,068 KB
testcase_43 AC 124 ms
56,012 KB
testcase_44 AC 122 ms
55,912 KB
testcase_45 AC 124 ms
55,540 KB
testcase_46 AC 123 ms
55,748 KB
testcase_47 AC 123 ms
56,164 KB
testcase_48 AC 122 ms
56,064 KB
testcase_49 AC 126 ms
55,900 KB
testcase_50 AC 125 ms
55,880 KB
testcase_51 AC 124 ms
56,252 KB
testcase_52 AC 123 ms
55,956 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