結果
| 問題 | 
                            No.1585 Cubic Number
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ks2m
                         | 
                    
| 提出日時 | 2021-07-08 22:21:41 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 143 ms / 1,000 ms | 
| コード長 | 336 bytes | 
| コンパイル時間 | 2,124 ms | 
| コンパイル使用メモリ | 74,232 KB | 
| 実行使用メモリ | 55,916 KB | 
| 最終ジャッジ日時 | 2024-07-01 13:36:34 | 
| 合計ジャッジ時間 | 7,541 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 28 | 
ソースコード
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		sc.close();
		for (long i = 1; i <= 1000000; i++) {
			if (i * i * i == n) {
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
}
            
            
            
        
            
ks2m