結果

問題 No.1585 Cubic Number
ユーザー You_saku
提出日時 2021-09-18 16:47:01
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 468 bytes
コンパイル時間 686 ms
コンパイル使用メモリ 89,796 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-30 14:15:48
合計ジャッジ時間 1,634 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 20 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<string>
#include<set>
#include<map>
#include<ios>
#include<iomanip> 
#include<cmath>
#include<limits>
#include<algorithm>

using namespace std;

int MAX = 1000000;
int main(){
    long long n;
    cin >> n;
    for(int i=1; i<=MAX; i++){
        long long tmp = (1LL*i)*(1LL*1)*(1LL*i);
        if(tmp == n){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}
0