結果

問題 No.1585 Cubic Number
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-02-15 00:41:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 419 ms / 1,000 ms
コード長 100 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 52,516 KB
最終ジャッジ日時 2023-09-24 11:14:17
合計ジャッジ時間 14,958 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 366 ms
52,132 KB
testcase_01 AC 369 ms
52,376 KB
testcase_02 AC 374 ms
52,284 KB
testcase_03 AC 374 ms
52,240 KB
testcase_04 AC 378 ms
52,516 KB
testcase_05 AC 391 ms
52,368 KB
testcase_06 AC 379 ms
52,220 KB
testcase_07 AC 385 ms
52,268 KB
testcase_08 AC 372 ms
52,388 KB
testcase_09 AC 382 ms
52,352 KB
testcase_10 AC 394 ms
52,392 KB
testcase_11 AC 399 ms
52,380 KB
testcase_12 AC 419 ms
52,240 KB
testcase_13 AC 412 ms
52,268 KB
testcase_14 AC 382 ms
52,236 KB
testcase_15 AC 372 ms
52,416 KB
testcase_16 AC 382 ms
52,212 KB
testcase_17 AC 360 ms
52,264 KB
testcase_18 AC 380 ms
52,208 KB
testcase_19 AC 366 ms
52,272 KB
testcase_20 AC 371 ms
52,268 KB
testcase_21 AC 361 ms
52,232 KB
testcase_22 AC 367 ms
52,436 KB
testcase_23 AC 359 ms
52,200 KB
testcase_24 AC 374 ms
52,356 KB
testcase_25 AC 369 ms
52,356 KB
testcase_26 AC 359 ms
52,432 KB
testcase_27 AC 375 ms
52,516 KB
testcase_28 AC 373 ms
52,456 KB
testcase_29 AC 386 ms
52,236 KB
testcase_30 AC 384 ms
52,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

hs={}
1.upto(10**6){|i|
	hs[i**3]=0
}
if hs.member?(gets.to_i) then
	puts "Yes"
else
	puts "No"
end
0