結果

問題 No.1235 ζ関数
ユーザー keymoonkeymoon
提出日時 2021-01-18 12:13:11
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 595 bytes
コンパイル時間 2,537 ms
コンパイル使用メモリ 99,464 KB
実行使用メモリ 22,792 KB
最終ジャッジ日時 2023-08-20 19:37:54
合計ジャッジ時間 4,860 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 46 ms
18,608 KB
testcase_02 AC 46 ms
20,816 KB
testcase_03 AC 46 ms
20,540 KB
testcase_04 WA -
testcase_05 AC 46 ms
22,792 KB
testcase_06 AC 47 ms
20,708 KB
testcase_07 AC 49 ms
20,540 KB
testcase_08 AC 52 ms
20,696 KB
testcase_09 AC 47 ms
20,772 KB
testcase_10 AC 46 ms
20,624 KB
testcase_11 AC 47 ms
20,600 KB
testcase_12 AC 46 ms
20,732 KB
testcase_13 AC 46 ms
22,740 KB
testcase_14 AC 47 ms
20,636 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 47 ms
20,656 KB
testcase_19 WA -
testcase_20 AC 46 ms
22,648 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());
        for (int i = 2; i * i <= n; i++)
        {
            if (n % i == 0)
            {
                Console.WriteLine(1);
                return;
            }
        }
        Console.WriteLine(0);
    }
}
0