結果

問題 No.1585 Cubic Number
ユーザー AsahiAsahi
提出日時 2023-02-06 08:29:29
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 619 bytes
コンパイル時間 1,889 ms
コンパイル使用メモリ 71,736 KB
実行使用メモリ 56,032 KB
最終ジャッジ日時 2023-09-17 20:30:47
合計ジャッジ時間 7,545 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,600 KB
testcase_01 WA -
testcase_02 AC 128 ms
55,388 KB
testcase_03 AC 129 ms
55,480 KB
testcase_04 AC 129 ms
53,704 KB
testcase_05 AC 127 ms
55,480 KB
testcase_06 AC 129 ms
55,688 KB
testcase_07 AC 128 ms
56,032 KB
testcase_08 AC 127 ms
55,816 KB
testcase_09 AC 127 ms
55,380 KB
testcase_10 AC 127 ms
55,808 KB
testcase_11 AC 130 ms
55,464 KB
testcase_12 AC 131 ms
55,680 KB
testcase_13 AC 130 ms
55,776 KB
testcase_14 AC 129 ms
55,572 KB
testcase_15 AC 128 ms
55,440 KB
testcase_16 AC 127 ms
55,532 KB
testcase_17 AC 128 ms
55,744 KB
testcase_18 AC 127 ms
55,696 KB
testcase_19 AC 129 ms
55,692 KB
testcase_20 AC 128 ms
55,532 KB
testcase_21 AC 130 ms
55,384 KB
testcase_22 AC 127 ms
55,980 KB
testcase_23 AC 128 ms
55,232 KB
testcase_24 AC 130 ms
55,212 KB
testcase_25 AC 128 ms
55,456 KB
testcase_26 AC 127 ms
55,808 KB
testcase_27 AC 128 ms
55,220 KB
testcase_28 AC 128 ms
55,480 KB
testcase_29 AC 128 ms
55,460 KB
testcase_30 AC 129 ms
55,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;
// import java.util.stream.Stream;

class Main{
    static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
    static StringTokenizer st;
    static PrintWriter output = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException{
        long n = sc.nextLong();
        boolean ok = false;
        for(long i=2;i<=1000000;i++) {
            if( i * i * i  == n ) ok = true;
        }
        output.print(ok?"Yes":"No");
        output.flush();
    }
}
0