結果

問題 No.1585 Cubic Number
ユーザー Shiro_SShiro_S
提出日時 2021-07-08 22:22:02
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 55 bytes
コンパイル時間 193 ms
使用メモリ 14,200 KB
最終ジャッジ日時 2023-02-01 19:56:44
合計ジャッジ時間 3,837 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 71 ms
13,968 KB
testcase_01 AC 70 ms
13,928 KB
testcase_02 AC 70 ms
13,972 KB
testcase_03 AC 71 ms
13,960 KB
testcase_04 AC 72 ms
14,128 KB
testcase_05 AC 71 ms
13,976 KB
testcase_06 AC 71 ms
13,980 KB
testcase_07 AC 73 ms
13,856 KB
testcase_08 AC 72 ms
13,892 KB
testcase_09 AC 71 ms
14,036 KB
testcase_10 AC 72 ms
13,968 KB
testcase_11 AC 70 ms
13,928 KB
testcase_12 AC 71 ms
14,088 KB
testcase_13 AC 70 ms
14,200 KB
testcase_14 AC 70 ms
13,972 KB
testcase_15 AC 70 ms
14,084 KB
testcase_16 AC 71 ms
13,960 KB
testcase_17 AC 70 ms
13,976 KB
testcase_18 AC 71 ms
13,856 KB
testcase_19 AC 71 ms
14,116 KB
testcase_20 AC 72 ms
14,088 KB
testcase_21 AC 71 ms
14,048 KB
testcase_22 AC 72 ms
13,844 KB
testcase_23 AC 71 ms
13,968 KB
testcase_24 AC 70 ms
13,936 KB
testcase_25 AC 70 ms
13,960 KB
testcase_26 AC 71 ms
13,932 KB
testcase_27 AC 72 ms
13,860 KB
testcase_28 AC 72 ms
13,960 KB
testcase_29 AC 71 ms
13,940 KB
testcase_30 AC 72 ms
13,956 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
puts Math.cbrt(n).to_i**3==n ? "Yes" : "No"
0