結果

問題 No.312 置換処理
ユーザー keymoonkeymoon
提出日時 2021-02-01 22:26:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 818 bytes
コンパイル時間 1,935 ms
コンパイル使用メモリ 113,108 KB
実行使用メモリ 27,152 KB
最終ジャッジ日時 2024-04-27 11:11:52
合計ジャッジ時間 3,514 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
24,840 KB
testcase_01 AC 35 ms
26,776 KB
testcase_02 AC 39 ms
24,624 KB
testcase_03 AC 39 ms
24,744 KB
testcase_04 AC 27 ms
26,652 KB
testcase_05 AC 39 ms
24,728 KB
testcase_06 AC 34 ms
26,900 KB
testcase_07 AC 37 ms
24,740 KB
testcase_08 AC 37 ms
24,848 KB
testcase_09 AC 32 ms
25,008 KB
testcase_10 AC 32 ms
26,888 KB
testcase_11 AC 36 ms
24,612 KB
testcase_12 AC 34 ms
25,096 KB
testcase_13 AC 37 ms
22,708 KB
testcase_14 AC 35 ms
25,008 KB
testcase_15 AC 34 ms
25,004 KB
testcase_16 AC 32 ms
25,100 KB
testcase_17 AC 35 ms
24,840 KB
testcase_18 AC 37 ms
24,752 KB
testcase_19 AC 37 ms
27,024 KB
testcase_20 AC 38 ms
24,748 KB
testcase_21 AC 38 ms
24,840 KB
testcase_22 AC 27 ms
22,704 KB
testcase_23 AC 27 ms
24,972 KB
testcase_24 AC 27 ms
24,752 KB
testcase_25 AC 27 ms
24,716 KB
testcase_26 AC 27 ms
24,748 KB
testcase_27 AC 27 ms
27,152 KB
testcase_28 AC 27 ms
26,764 KB
testcase_29 AC 28 ms
26,888 KB
testcase_30 AC 29 ms
24,752 KB
testcase_31 AC 30 ms
27,020 KB
testcase_32 AC 29 ms
26,508 KB
testcase_33 AC 30 ms
24,868 KB
testcase_34 AC 31 ms
24,996 KB
testcase_35 AC 30 ms
24,884 KB
testcase_36 AC 28 ms
24,584 KB
testcase_37 AC 27 ms
24,752 KB
testcase_38 AC 27 ms
27,016 KB
testcase_39 AC 30 ms
25,120 KB
testcase_40 AC 27 ms
26,752 KB
testcase_41 AC 27 ms
25,008 KB
testcase_42 AC 28 ms
24,740 KB
testcase_43 AC 26 ms
22,712 KB
testcase_44 AC 26 ms
24,868 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;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;

public static class P
{
    public static void Main()
    {
        long n = long.Parse(Console.ReadLine());
        List<long> factors = new List<long>();
        for (long i = 1; (i * i) <= n; i++)
        {
            if (n % i != 0) continue;
            factors.Add(i);
            factors.Add(n / i);
        }
        Console.WriteLine(factors.Where(x => 3 <= x).Min());
    }
}
0