結果

問題 No.1585 Cubic Number
ユーザー tcltktcltk
提出日時 2021-10-21 00:58:41
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 457 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 81,840 KB
実行使用メモリ 86,328 KB
最終ジャッジ日時 2023-10-20 11:15:01
合計ジャッジ時間 5,659 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
86,320 KB
testcase_01 AC 124 ms
86,316 KB
testcase_02 AC 122 ms
86,320 KB
testcase_03 AC 122 ms
86,324 KB
testcase_04 AC 123 ms
86,324 KB
testcase_05 AC 123 ms
86,320 KB
testcase_06 AC 122 ms
86,328 KB
testcase_07 AC 123 ms
86,320 KB
testcase_08 AC 128 ms
86,316 KB
testcase_09 AC 121 ms
86,328 KB
testcase_10 AC 124 ms
86,320 KB
testcase_11 AC 125 ms
86,316 KB
testcase_12 AC 126 ms
86,320 KB
testcase_13 AC 123 ms
86,324 KB
testcase_14 AC 124 ms
86,324 KB
testcase_15 AC 122 ms
86,328 KB
testcase_16 AC 122 ms
86,328 KB
testcase_17 AC 123 ms
86,328 KB
testcase_18 AC 122 ms
86,320 KB
testcase_19 AC 124 ms
86,316 KB
testcase_20 AC 124 ms
86,328 KB
testcase_21 AC 126 ms
86,324 KB
testcase_22 AC 125 ms
86,320 KB
testcase_23 AC 126 ms
86,320 KB
testcase_24 AC 127 ms
86,328 KB
testcase_25 AC 123 ms
86,320 KB
testcase_26 AC 126 ms
86,288 KB
testcase_27 AC 125 ms
86,324 KB
testcase_28 AC 125 ms
86,320 KB
testcase_29 AC 126 ms
86,328 KB
testcase_30 AC 124 ms
86,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/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')
0