結果
| 問題 |
No.1585 Cubic Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-21 00:58:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 1,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 87,424 KB |
| 最終ジャッジ日時 | 2024-09-20 06:48:35 |
| 合計ジャッジ時間 | 5,228 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#!/usr/bin/env python3
# from typing import *
import sys
import io
import math
import collections
import decimal
import itertools
import bisect
import heapq
def input():
return sys.stdin.readline()[:-1]
# sys.setrecursionlimit(1000000)
# _INPUT = """1331
# """
# sys.stdin = io.StringIO(_INPUT)
INF = 10**10
YES = 'Yes'
NO = 'No'
N = int(input())
k = int(math.pow(N, 1/3))
if N == k**3 or N == (k+1)**3:
print('Yes')
else:
print('No')