結果

問題 No.1585 Cubic Number
ユーザー natoriusan
提出日時 2023-08-01 12:21:07
言語 F#
(F# 4.0)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 197 bytes
コンパイル時間 11,839 ms
コンパイル使用メモリ 186,412 KB
実行使用メモリ 30,720 KB
最終ジャッジ日時 2024-10-11 04:09:49
合計ジャッジ時間 16,141 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (336 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