結果

問題 No.1585 Cubic Number
ユーザー merlinmerlin
提出日時 2021-07-08 22:21:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 494 bytes
コンパイル時間 3,002 ms
コンパイル使用メモリ 72,104 KB
実行使用メモリ 53,048 KB
最終ジャッジ日時 2023-09-14 06:00:34
合計ジャッジ時間 5,145 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
51,200 KB
testcase_01 AC 53 ms
51,232 KB
testcase_02 AC 56 ms
51,240 KB
testcase_03 AC 54 ms
51,004 KB
testcase_04 AC 53 ms
51,040 KB
testcase_05 AC 54 ms
53,048 KB
testcase_06 AC 55 ms
51,172 KB
testcase_07 AC 55 ms
51,084 KB
testcase_08 AC 55 ms
51,076 KB
testcase_09 AC 55 ms
51,076 KB
testcase_10 AC 55 ms
51,084 KB
testcase_11 AC 55 ms
51,112 KB
testcase_12 AC 57 ms
51,080 KB
testcase_13 AC 54 ms
51,208 KB
testcase_14 AC 60 ms
51,180 KB
testcase_15 AC 55 ms
51,320 KB
testcase_16 AC 55 ms
50,976 KB
testcase_17 AC 55 ms
51,552 KB
testcase_18 AC 55 ms
50,956 KB
testcase_19 AC 53 ms
50,984 KB
testcase_20 AC 55 ms
51,080 KB
testcase_21 AC 55 ms
51,132 KB
testcase_22 AC 53 ms
51,476 KB
testcase_23 AC 55 ms
51,456 KB
testcase_24 AC 54 ms
50,964 KB
testcase_25 AC 55 ms
51,236 KB
testcase_26 AC 54 ms
51,076 KB
testcase_27 AC 55 ms
51,044 KB
testcase_28 AC 56 ms
51,072 KB
testcase_29 AC 54 ms
51,084 KB
testcase_30 AC 54 ms
50,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        long n=Long.parseLong(bu.readLine());
        int i; boolean ans=false;
        for(i=1;i<=1000000;i++)
        if(1l*i*i*i==n) ans=true;
        if(ans) sb.append("Yes\n");
        else sb.append("No\n");
        System.out.print(sb);
    }
}
0