結果

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

ソースコード

diff #

#include <bits/stdc++.h>

using std::cin;
using std::cout;
using ll = long long;

int main() {
    ll n;
	cin >> n;
	
	ll x = ceil(pow(n, 1.0 / 3));
	if (x * x * x == n) puts("Yes");
	else puts("No");
		
	return 0;
}
0