結果

問題 No.1235 ζ関数
ユーザー keymoonkeymoon
提出日時 2021-01-18 12:16:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 499 bytes
コンパイル時間 1,951 ms
コンパイル使用メモリ 104,252 KB
実行使用メモリ 25,068 KB
最終ジャッジ日時 2023-08-20 19:39:39
合計ジャッジ時間 5,472 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
23,084 KB
testcase_01 AC 118 ms
22,904 KB
testcase_02 AC 118 ms
23,120 KB
testcase_03 AC 118 ms
22,992 KB
testcase_04 AC 136 ms
22,984 KB
testcase_05 AC 117 ms
23,020 KB
testcase_06 AC 119 ms
22,876 KB
testcase_07 AC 119 ms
23,000 KB
testcase_08 AC 117 ms
20,940 KB
testcase_09 AC 117 ms
22,880 KB
testcase_10 AC 117 ms
23,028 KB
testcase_11 AC 118 ms
24,992 KB
testcase_12 AC 119 ms
25,016 KB
testcase_13 AC 118 ms
22,888 KB
testcase_14 AC 117 ms
22,908 KB
testcase_15 AC 118 ms
22,936 KB
testcase_16 AC 135 ms
25,068 KB
testcase_17 AC 117 ms
22,868 KB
testcase_18 AC 118 ms
24,948 KB
testcase_19 AC 117 ms
23,068 KB
testcase_20 AC 117 ms
24,952 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 n = int.Parse(Console.ReadLine());
        double res = 0;
        for (int i = 1; i < 1e6; i++) res += Pow(i, -n);
        Console.WriteLine(res);
    }
}
0