結果

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

ソースコード

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=1; i*i*i<=n; i++){
		if(i*i*i==n) flg=true;
	}
	cout<<(flg?"Yes":"No")<<endl;
}
0