結果
| 問題 | No.1063 ルートの計算 / Sqrt Calculation |
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2020-05-30 16:31:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 2,000 ms |
| コード長 | 332 bytes |
| 記録 | |
| コンパイル時間 | 1,925 ms |
| コンパイル使用メモリ | 103,168 KB |
| 実行使用メモリ | 18,432 KB |
| 最終ジャッジ日時 | 2026-05-08 02:59:01 |
| 合計ジャッジ時間 | 3,142 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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