結果

問題 No.1700 floor X
ユーザー bluemeganebluemegane
提出日時 2021-10-08 22:18:50
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 1,710 ms
コンパイル使用メモリ 60,760 KB
実行使用メモリ 22,828 KB
最終ジャッジ日時 2023-09-30 10:41:18
合計ジャッジ時間 8,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,624 KB
testcase_01 AC 101 ms
22,732 KB
testcase_02 AC 103 ms
22,776 KB
testcase_03 AC 102 ms
20,724 KB
testcase_04 AC 102 ms
20,764 KB
testcase_05 AC 104 ms
22,740 KB
testcase_06 AC 103 ms
20,672 KB
testcase_07 AC 102 ms
20,744 KB
testcase_08 AC 102 ms
20,632 KB
testcase_09 AC 101 ms
18,784 KB
testcase_10 AC 103 ms
22,828 KB
testcase_11 AC 102 ms
20,700 KB
testcase_12 AC 102 ms
20,628 KB
testcase_13 AC 103 ms
22,716 KB
testcase_14 AC 102 ms
20,848 KB
testcase_15 AC 104 ms
22,724 KB
testcase_16 AC 103 ms
20,808 KB
testcase_17 AC 102 ms
20,792 KB
testcase_18 AC 102 ms
20,616 KB
testcase_19 AC 104 ms
20,704 KB
testcase_20 AC 102 ms
20,668 KB
testcase_21 AC 106 ms
22,696 KB
testcase_22 AC 106 ms
20,892 KB
testcase_23 AC 104 ms
20,716 KB
testcase_24 AC 106 ms
22,736 KB
testcase_25 AC 104 ms
20,732 KB
testcase_26 AC 105 ms
22,688 KB
testcase_27 AC 106 ms
20,680 KB
testcase_28 AC 106 ms
20,804 KB
testcase_29 AC 105 ms
18,636 KB
testcase_30 AC 103 ms
20,676 KB
testcase_31 AC 104 ms
18,632 KB
testcase_32 AC 105 ms
20,672 KB
testcase_33 AC 104 ms
18,596 KB
testcase_34 AC 104 ms
18,656 KB
testcase_35 AC 105 ms
20,688 KB
testcase_36 AC 104 ms
20,736 KB
testcase_37 AC 104 ms
20,600 KB
testcase_38 AC 105 ms
20,768 KB
testcase_39 AC 105 ms
22,728 KB
testcase_40 AC 105 ms
20,608 KB
testcase_41 AC 107 ms
20,724 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
        }
    }
}
0