結果
| 問題 | No.1585 Cubic Number |
| コンテスト | |
| ユーザー |
judgelaw
|
| 提出日時 | 2021-07-08 22:27:57 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 1,000 ms |
| コード長 | 125 bytes |
| 記録 | |
| コンパイル時間 | 589 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,576 KB |
| 最終ジャッジ日時 | 2026-03-22 15:25:32 |
| 合計ジャッジ時間 | 4,415 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
N=int(input())
Np=int(N**(1/3))
for i in range(-1,2):
if (Np+i)**3==N:
print("Yes")
exit(0)
print("No")
judgelaw