結果

問題 No.1585 Cubic Number
ユーザー ああいい
提出日時 2021-12-26 10:09:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-22 16:54:59
合計ジャッジ時間 2,303 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

end = 10 ** 6 + 1
start = 1
while end - start > 1:
    mid = (start + end) // 2
    if mid ** 3<= N:
        start = mid
    else:
        end = mid
if start **3 == N:
    print('Yes')
else:
    print('(No')
0