結果
問題 |
No.414 衝動
|
ユーザー |
|
提出日時 | 2016-08-26 23:16:51 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 861 bytes |
コンパイル時間 | 3,558 ms |
コンパイル使用メモリ | 103,680 KB |
実行使用メモリ | 22,912 KB |
最終ジャッジ日時 | 2024-11-08 16:28:25 |
合計ジャッジ時間 | 6,385 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 TLE * 1 -- * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yuki414 { class Program { static void Main(string[] args) { long m = long.Parse(Console.ReadLine()); if (m % 2 == 0) { Console.WriteLine(2+" "+m/2); } else { bool flag = true; for (int i = 3; i*i <= m ; i+=2) { if (m % i == 0) { Console.WriteLine(i+" "+m/i); flag = false; break; } } if (flag) { Console.WriteLine(1+" "+m); } } } } }