結果

問題 No.136 Yet Another GCD Problem
ユーザー nanophoto12nanophoto12
提出日時 2015-01-28 01:04:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 545 bytes
コンパイル時間 4,141 ms
コンパイル使用メモリ 99,748 KB
実行使用メモリ 24,048 KB
最終ジャッジ日時 2023-09-05 07:12:25
合計ジャッジ時間 8,235 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
19,928 KB
testcase_01 AC 60 ms
23,896 KB
testcase_02 AC 60 ms
19,840 KB
testcase_03 AC 60 ms
19,876 KB
testcase_04 AC 61 ms
23,928 KB
testcase_05 AC 61 ms
23,964 KB
testcase_06 AC 60 ms
23,856 KB
testcase_07 AC 61 ms
21,876 KB
testcase_08 AC 60 ms
22,028 KB
testcase_09 AC 61 ms
21,752 KB
testcase_10 AC 60 ms
21,880 KB
testcase_11 AC 61 ms
21,868 KB
testcase_12 AC 62 ms
21,712 KB
testcase_13 AC 61 ms
21,912 KB
testcase_14 AC 61 ms
24,048 KB
testcase_15 AC 59 ms
19,764 KB
testcase_16 AC 60 ms
21,872 KB
testcase_17 AC 61 ms
19,844 KB
testcase_18 AC 61 ms
21,700 KB
testcase_19 AC 61 ms
21,772 KB
testcase_20 AC 61 ms
21,920 KB
testcase_21 AC 62 ms
22,004 KB
testcase_22 AC 62 ms
21,812 KB
testcase_23 AC 62 ms
21,872 KB
testcase_24 AC 60 ms
21,784 KB
testcase_25 AC 61 ms
21,880 KB
testcase_26 AC 59 ms
19,836 KB
testcase_27 AC 60 ms
21,776 KB
testcase_28 AC 61 ms
19,912 KB
testcase_29 AC 62 ms
21,832 KB
testcase_30 AC 61 ms
19,824 KB
testcase_31 AC 62 ms
23,976 KB
testcase_32 AC 60 ms
21,844 KB
testcase_33 AC 61 ms
21,772 KB
testcase_34 AC 60 ms
21,708 KB
testcase_35 AC 60 ms
19,848 KB
testcase_36 AC 59 ms
19,828 KB
testcase_37 AC 62 ms
21,932 KB
testcase_38 AC 61 ms
21,752 KB
testcase_39 AC 60 ms
19,736 KB
testcase_40 AC 59 ms
21,872 KB
testcase_41 AC 61 ms
21,776 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.Generic;
using System.Linq;
using System.Text;

namespace YukiCoder2
{
    class Program
    {
        static void Main(string[] args)
        {
            var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            var n = line[0];
            var max = 1;
            for (int i = 1; i < n / 2 + 1; i++)
            {
                if (n%i == 0)
                {
                    max = i;
                }
            }
            Console.WriteLine(max);
        }
    }
}
0