結果

問題 No.300 平方数
ユーザー 小指が強い人小指が強い人
提出日時 2015-11-13 23:00:04
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 126 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 19,596 KB
最終ジャッジ日時 2023-10-11 16:22:21
合計ジャッジ時間 21,469 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
19,596 KB
testcase_01 AC 82 ms
15,152 KB
testcase_02 AC 95 ms
15,232 KB
testcase_03 AC 80 ms
15,276 KB
testcase_04 AC 78 ms
15,104 KB
testcase_05 AC 79 ms
15,156 KB
testcase_06 AC 79 ms
15,300 KB
testcase_07 AC 79 ms
15,280 KB
testcase_08 AC 79 ms
15,228 KB
testcase_09 AC 79 ms
15,148 KB
testcase_10 AC 80 ms
15,208 KB
testcase_11 AC 80 ms
15,240 KB
testcase_12 AC 80 ms
15,104 KB
testcase_13 WA -
testcase_14 AC 80 ms
15,304 KB
testcase_15 AC 79 ms
15,168 KB
testcase_16 WA -
testcase_17 AC 81 ms
15,152 KB
testcase_18 AC 80 ms
15,064 KB
testcase_19 AC 83 ms
15,072 KB
testcase_20 TLE -
testcase_21 WA -
testcase_22 TLE -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 TLE -
testcase_28 WA -
testcase_29 WA -
testcase_30 TLE -
testcase_31 WA -
testcase_32 WA -
testcase_33 TLE -
testcase_34 WA -
testcase_35 WA -
testcase_36 TLE -
testcase_37 TLE -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 TLE -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x = gets.to_i
y = 1
while true do
    s = Math.sqrt(x * y)
    if s.ceil == s.to_i
        break
    end
    y += 1
end
puts y
0