結果

問題 No.1272 珍しい級数
ユーザー tentententen
提出日時 2020-11-04 10:47:17
言語 Java19
(openjdk 21)
結果
AC  
実行時間 757 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 3,509 ms
コンパイル使用メモリ 71,416 KB
実行使用メモリ 39,680 KB
最終ジャッジ日時 2023-09-29 15:43:20
合計ジャッジ時間 40,698 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 298 ms
39,104 KB
testcase_01 AC 696 ms
39,416 KB
testcase_02 AC 714 ms
39,064 KB
testcase_03 AC 712 ms
39,064 KB
testcase_04 AC 722 ms
39,076 KB
testcase_05 AC 757 ms
39,284 KB
testcase_06 AC 709 ms
39,176 KB
testcase_07 AC 712 ms
39,460 KB
testcase_08 AC 710 ms
39,392 KB
testcase_09 AC 714 ms
39,112 KB
testcase_10 AC 716 ms
39,116 KB
testcase_11 AC 690 ms
39,352 KB
testcase_12 AC 699 ms
39,340 KB
testcase_13 AC 711 ms
39,480 KB
testcase_14 AC 699 ms
39,108 KB
testcase_15 AC 697 ms
39,220 KB
testcase_16 AC 693 ms
39,416 KB
testcase_17 AC 714 ms
39,312 KB
testcase_18 AC 697 ms
39,132 KB
testcase_19 AC 710 ms
39,248 KB
testcase_20 AC 724 ms
39,628 KB
testcase_21 AC 697 ms
39,076 KB
testcase_22 AC 697 ms
39,028 KB
testcase_23 AC 715 ms
39,172 KB
testcase_24 AC 706 ms
39,172 KB
testcase_25 AC 697 ms
39,600 KB
testcase_26 AC 695 ms
39,208 KB
testcase_27 AC 697 ms
39,464 KB
testcase_28 AC 695 ms
39,124 KB
testcase_29 AC 699 ms
38,996 KB
testcase_30 AC 698 ms
39,148 KB
testcase_31 AC 731 ms
39,540 KB
testcase_32 AC 712 ms
39,100 KB
testcase_33 AC 693 ms
39,228 KB
testcase_34 AC 697 ms
38,964 KB
testcase_35 AC 703 ms
39,380 KB
testcase_36 AC 707 ms
39,240 KB
testcase_37 AC 707 ms
39,680 KB
testcase_38 AC 714 ms
39,320 KB
testcase_39 AC 694 ms
39,092 KB
testcase_40 AC 707 ms
39,308 KB
testcase_41 AC 694 ms
39,204 KB
testcase_42 AC 706 ms
39,328 KB
testcase_43 AC 703 ms
39,252 KB
testcase_44 AC 747 ms
39,148 KB
testcase_45 AC 706 ms
39,676 KB
testcase_46 AC 697 ms
39,152 KB
testcase_47 AC 700 ms
39,424 KB
testcase_48 AC 692 ms
39,320 KB
testcase_49 AC 690 ms
39,072 KB
testcase_50 AC 701 ms
39,084 KB
testcase_51 AC 731 ms
39,196 KB
testcase_52 AC 712 ms
39,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double k = sc.nextInt();
		double ans = 0;
		for (int i = 1; i < 10000000; i++) {
		    ans += Math.sin(k * i) / Math.pow(i, i);
		}
		System.out.println(ans);
	}
}
0