結果

問題 No.414 衝動
ユーザー jousenjousen
提出日時 2016-08-27 11:01:38
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 713 bytes
コンパイル時間 1,018 ms
コンパイル使用メモリ 107,772 KB
実行使用メモリ 26,820 KB
最終ジャッジ日時 2024-04-26 06:10:30
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
18,688 KB
testcase_01 AC 24 ms
18,816 KB
testcase_02 AC 24 ms
18,816 KB
testcase_03 WA -
testcase_04 AC 25 ms
18,688 KB
testcase_05 AC 36 ms
18,688 KB
testcase_06 AC 37 ms
18,432 KB
testcase_07 AC 26 ms
18,688 KB
testcase_08 AC 31 ms
18,560 KB
testcase_09 WA -
testcase_10 AC 23 ms
18,560 KB
testcase_11 AC 26 ms
18,560 KB
testcase_12 AC 24 ms
18,560 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;
using System.Threading.Tasks;

namespace tes
{
	class contest
	{
		static void Main(string[] args)
		{
			long num = long.Parse(Console.ReadLine());
            long tmp = (long)Math.Sqrt(num);
            var list = new List<long>();

            for (int i = 2; i < tmp; i++)
            {
                if (num % i == 0)
                {
                    list.Add(i);
                    list.Add(num / i);
                    break;
                }
            }
            if (list.Count() == 0) Console.WriteLine(1 + " " + num / 1);
            else Console.WriteLine(list[0]+" "+list[1]);
            
		}

	}
}
0