結果

問題 No.1585 Cubic Number
ユーザー Shawn stayC
提出日時 2021-08-26 23:03:45
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 192,292 KB
最終ジャッジ日時 2025-01-24 02:09:10
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i,l,r) for(int i=(l);i<(r);++i)
typedef long long ll;

int main(){
	ll n; cin>>n;
	bool flg=false;
	for(ll i=2; i*i*i<=n; i++){
		if(i*i*i==n) flg=true;
	}
	cout<<(flg?"Yes":"No")<<endl;
}
0