結果
| 問題 |
No.1063 ルートの計算 / Sqrt Calculation
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2020-05-30 16:31:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 2,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 1,026 ms |
| コンパイル使用メモリ | 102,784 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2024-11-07 19:35:08 |
| 合計ジャッジ時間 | 2,306 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Hello
{
static void Main()
{
var n = int.Parse(Console.ReadLine().Trim());
var b = 0;
var a = 0;
for (int i = 1; i * i <= n; i++)
{
if (n % (i * i) == 0) { a = i; b = n / (i * i); }
}
Console.WriteLine("{0} {1}", a, b);
}
}
bluemegane