結果

問題 No.1272 珍しい級数
ユーザー keymoonkeymoon
提出日時 2021-01-18 11:20:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 544 bytes
コンパイル時間 1,578 ms
コンパイル使用メモリ 104,160 KB
実行使用メモリ 25,468 KB
最終ジャッジ日時 2023-08-20 18:55:27
合計ジャッジ時間 6,760 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
21,156 KB
testcase_01 AC 65 ms
23,044 KB
testcase_02 AC 49 ms
25,132 KB
testcase_03 AC 49 ms
23,096 KB
testcase_04 AC 50 ms
25,016 KB
testcase_05 AC 49 ms
21,208 KB
testcase_06 AC 49 ms
23,312 KB
testcase_07 AC 49 ms
23,168 KB
testcase_08 AC 49 ms
23,304 KB
testcase_09 AC 49 ms
21,148 KB
testcase_10 AC 50 ms
23,244 KB
testcase_11 AC 49 ms
25,036 KB
testcase_12 AC 50 ms
23,140 KB
testcase_13 AC 50 ms
23,128 KB
testcase_14 AC 51 ms
25,036 KB
testcase_15 AC 49 ms
23,116 KB
testcase_16 AC 51 ms
23,168 KB
testcase_17 AC 51 ms
25,468 KB
testcase_18 AC 50 ms
25,148 KB
testcase_19 AC 50 ms
23,096 KB
testcase_20 AC 51 ms
23,112 KB
testcase_21 AC 49 ms
23,096 KB
testcase_22 AC 49 ms
25,140 KB
testcase_23 AC 50 ms
23,352 KB
testcase_24 AC 51 ms
23,172 KB
testcase_25 AC 50 ms
23,072 KB
testcase_26 AC 49 ms
21,052 KB
testcase_27 AC 49 ms
25,200 KB
testcase_28 AC 50 ms
25,168 KB
testcase_29 AC 48 ms
23,264 KB
testcase_30 AC 50 ms
23,136 KB
testcase_31 AC 51 ms
23,104 KB
testcase_32 AC 52 ms
23,132 KB
testcase_33 AC 49 ms
23,144 KB
testcase_34 AC 49 ms
23,352 KB
testcase_35 AC 48 ms
21,312 KB
testcase_36 AC 49 ms
23,080 KB
testcase_37 AC 49 ms
25,164 KB
testcase_38 AC 50 ms
23,132 KB
testcase_39 AC 50 ms
25,140 KB
testcase_40 AC 49 ms
23,188 KB
testcase_41 AC 49 ms
23,152 KB
testcase_42 AC 49 ms
23,452 KB
testcase_43 AC 49 ms
21,284 KB
testcase_44 AC 58 ms
23,252 KB
testcase_45 AC 52 ms
23,072 KB
testcase_46 AC 51 ms
22,888 KB
testcase_47 AC 51 ms
23,428 KB
testcase_48 AC 48 ms
23,288 KB
testcase_49 AC 49 ms
25,264 KB
testcase_50 AC 48 ms
23,240 KB
testcase_51 AC 49 ms
25,016 KB
testcase_52 AC 50 ms
23,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P
{
    public static void Main()
    {
        int k = int.Parse(Console.ReadLine());
        double res = 0;
        for (int i = 1; i < 100; i++)
        {
            res += Sin(k * i) * Pow(i, -i);
        }
        Console.WriteLine(res);
    }
}
0