結果

問題 No.312 置換処理
ユーザー keymoonkeymoon
提出日時 2021-02-01 20:31:34
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 818 bytes
コンパイル時間 2,896 ms
コンパイル使用メモリ 104,092 KB
実行使用メモリ 23,716 KB
最終ジャッジ日時 2023-09-12 10:46:33
合計ジャッジ時間 9,002 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
21,544 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 71 ms
21,568 KB
testcase_06 AC 65 ms
21,568 KB
testcase_07 AC 69 ms
21,608 KB
testcase_08 AC 66 ms
21,808 KB
testcase_09 AC 63 ms
23,708 KB
testcase_10 AC 65 ms
23,608 KB
testcase_11 AC 68 ms
21,660 KB
testcase_12 AC 67 ms
21,592 KB
testcase_13 AC 69 ms
23,716 KB
testcase_14 AC 67 ms
23,628 KB
testcase_15 AC 66 ms
21,660 KB
testcase_16 AC 64 ms
21,592 KB
testcase_17 AC 69 ms
23,560 KB
testcase_18 AC 69 ms
23,632 KB
testcase_19 AC 67 ms
19,644 KB
testcase_20 AC 69 ms
21,620 KB
testcase_21 AC 70 ms
21,676 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 59 ms
23,672 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 60 ms
21,644 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 AC 62 ms
21,632 KB
testcase_36 AC 59 ms
19,572 KB
testcase_37 AC 59 ms
21,536 KB
testcase_38 AC 58 ms
21,564 KB
testcase_39 AC 64 ms
23,564 KB
testcase_40 AC 60 ms
21,600 KB
testcase_41 AC 59 ms
23,608 KB
testcase_42 AC 59 ms
21,684 KB
testcase_43 AC 59 ms
21,576 KB
testcase_44 AC 58 ms
21,584 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 = 3; (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