結果
| 問題 | No.1585 Cubic Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-07 01:42:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2026-05-18 02:57:37 |
| 合計ジャッジ時間 | 3,680 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import math
N = int(input())
x = int(math.pow(N, 1/3))
for i in range(10):
if (x+i)**3==N or (x-i)**3==N:
print("Yes")
exit()
print("No")