結果
| 問題 | 
                            No.1700 floor X
                             | 
                    
| コンテスト | |
| ユーザー | 
                             bluemegane
                         | 
                    
| 提出日時 | 2021-10-08 22:18:50 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 423 bytes | 
| コンパイル時間 | 4,264 ms | 
| コンパイル使用メモリ | 106,396 KB | 
| 実行使用メモリ | 25,944 KB | 
| 最終ジャッジ日時 | 2024-07-23 04:48:05 | 
| 合計ジャッジ時間 | 7,027 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 41 WA * 3 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using static System.Math;
using System;
public class Hello
{
    static void Main()
    {
        var t = int.Parse(Console.ReadLine().Trim());
        while (t-- > 0)
        {
            var n = long.Parse(Console.ReadLine().Trim());
            var ans = (long)Sqrt(n);
            if (ans * ans <= n && (ans + 1) * (ans + 1) > n) Console.WriteLine(ans);
            else Console.WriteLine(ans + 1);
        }
    }
}
            
            
            
        
            
bluemegane