結果

問題 No.136 Yet Another GCD Problem
ユーザー しらゆきしらゆき
提出日時 2015-11-23 23:15:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 373 bytes
コンパイル時間 1,877 ms
コンパイル使用メモリ 101,608 KB
実行使用メモリ 22,864 KB
最終ジャッジ日時 2023-10-11 18:26:02
合計ジャッジ時間 6,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,864 KB
testcase_01 AC 56 ms
18,680 KB
testcase_02 AC 56 ms
20,636 KB
testcase_03 AC 57 ms
22,788 KB
testcase_04 AC 57 ms
22,796 KB
testcase_05 AC 56 ms
18,656 KB
testcase_06 AC 57 ms
22,776 KB
testcase_07 AC 56 ms
20,736 KB
testcase_08 AC 57 ms
18,700 KB
testcase_09 AC 56 ms
20,748 KB
testcase_10 AC 56 ms
20,768 KB
testcase_11 AC 57 ms
22,688 KB
testcase_12 AC 56 ms
20,756 KB
testcase_13 AC 56 ms
20,640 KB
testcase_14 AC 56 ms
20,700 KB
testcase_15 AC 56 ms
20,572 KB
testcase_16 AC 57 ms
20,780 KB
testcase_17 AC 57 ms
22,764 KB
testcase_18 AC 55 ms
20,656 KB
testcase_19 AC 57 ms
22,744 KB
testcase_20 AC 56 ms
20,732 KB
testcase_21 AC 55 ms
20,724 KB
testcase_22 AC 57 ms
20,636 KB
testcase_23 AC 56 ms
20,756 KB
testcase_24 AC 56 ms
20,764 KB
testcase_25 AC 56 ms
22,788 KB
testcase_26 AC 57 ms
20,732 KB
testcase_27 AC 56 ms
20,636 KB
testcase_28 AC 55 ms
20,748 KB
testcase_29 AC 57 ms
22,812 KB
testcase_30 AC 57 ms
20,736 KB
testcase_31 AC 56 ms
20,636 KB
testcase_32 AC 56 ms
20,708 KB
testcase_33 AC 56 ms
20,644 KB
testcase_34 AC 57 ms
20,740 KB
testcase_35 AC 57 ms
20,640 KB
testcase_36 AC 57 ms
20,672 KB
testcase_37 AC 57 ms
20,664 KB
testcase_38 AC 57 ms
22,764 KB
testcase_39 AC 56 ms
20,612 KB
testcase_40 AC 56 ms
22,708 KB
testcase_41 AC 57 ms
20,720 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        var tmp = Console.ReadLine().Split();
        int n = int.Parse(tmp[0]);

        int ans = 1;

        for (int i = 2; i <= n / 2; i++)
        {
            if (n % i == 0)
            {
                ans = n / i;
                break;
            }
        }

        Console.WriteLine(ans);
    }
}
0