結果

問題 No.1585 Cubic Number
ユーザー natoriusannatoriusan
提出日時 2023-08-01 12:21:07
言語 F#
(F# 4.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 197 bytes
コンパイル時間 8,532 ms
コンパイル使用メモリ 186,464 KB
実行使用メモリ 30,976 KB
最終ジャッジ日時 2024-04-19 11:57:16
合計ジャッジ時間 11,449 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
30,592 KB
testcase_01 AC 57 ms
30,464 KB
testcase_02 AC 58 ms
30,336 KB
testcase_03 AC 55 ms
30,456 KB
testcase_04 AC 54 ms
30,180 KB
testcase_05 AC 58 ms
30,080 KB
testcase_06 AC 58 ms
30,336 KB
testcase_07 AC 55 ms
30,336 KB
testcase_08 AC 55 ms
30,464 KB
testcase_09 AC 54 ms
30,336 KB
testcase_10 AC 54 ms
30,464 KB
testcase_11 AC 57 ms
30,436 KB
testcase_12 AC 56 ms
30,848 KB
testcase_13 AC 56 ms
30,844 KB
testcase_14 AC 57 ms
30,464 KB
testcase_15 AC 55 ms
30,464 KB
testcase_16 AC 56 ms
30,184 KB
testcase_17 AC 56 ms
30,184 KB
testcase_18 AC 58 ms
30,336 KB
testcase_19 AC 62 ms
30,720 KB
testcase_20 AC 58 ms
30,592 KB
testcase_21 AC 61 ms
30,696 KB
testcase_22 AC 59 ms
30,464 KB
testcase_23 AC 59 ms
30,464 KB
testcase_24 AC 58 ms
30,592 KB
testcase_25 AC 58 ms
30,336 KB
testcase_26 AC 60 ms
30,592 KB
testcase_27 AC 63 ms
30,336 KB
testcase_28 AC 63 ms
30,592 KB
testcase_29 AC 58 ms
30,464 KB
testcase_30 AC 65 ms
30,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (487 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let n = stdin.ReadLine () |> int64

let mutable ans = 1L
while ans * ans * ans <= n do
    if ans * ans * ans = n then
        printfn "Yes"
        exit 0
    ans <- ans + 1L
        
printfn "No"
0