結果
問題 | No.1585 Cubic Number |
ユーザー | machoniump |
提出日時 | 2021-07-23 20:57:07 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 278 ms / 1,000 ms |
コード長 | 1,050 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 10,916 KB |
実行使用メモリ | 10,352 KB |
最終ジャッジ日時 | 2023-09-25 20:13:24 |
合計ジャッジ時間 | 5,955 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 270 ms
10,344 KB |
testcase_01 | AC | 34 ms
10,292 KB |
testcase_02 | AC | 33 ms
10,280 KB |
testcase_03 | AC | 33 ms
10,340 KB |
testcase_04 | AC | 33 ms
10,260 KB |
testcase_05 | AC | 33 ms
10,324 KB |
testcase_06 | AC | 34 ms
10,324 KB |
testcase_07 | AC | 33 ms
10,232 KB |
testcase_08 | AC | 33 ms
10,228 KB |
testcase_09 | AC | 32 ms
10,344 KB |
testcase_10 | AC | 34 ms
10,324 KB |
testcase_11 | AC | 32 ms
10,232 KB |
testcase_12 | AC | 198 ms
10,288 KB |
testcase_13 | AC | 122 ms
10,348 KB |
testcase_14 | AC | 170 ms
10,288 KB |
testcase_15 | AC | 34 ms
10,288 KB |
testcase_16 | AC | 34 ms
10,284 KB |
testcase_17 | AC | 34 ms
10,352 KB |
testcase_18 | AC | 223 ms
10,224 KB |
testcase_19 | AC | 265 ms
10,292 KB |
testcase_20 | AC | 89 ms
10,296 KB |
testcase_21 | AC | 208 ms
10,340 KB |
testcase_22 | AC | 176 ms
10,340 KB |
testcase_23 | AC | 227 ms
10,296 KB |
testcase_24 | AC | 275 ms
10,292 KB |
testcase_25 | AC | 230 ms
10,288 KB |
testcase_26 | AC | 235 ms
10,284 KB |
testcase_27 | AC | 198 ms
10,260 KB |
testcase_28 | AC | 34 ms
10,328 KB |
testcase_29 | AC | 32 ms
10,232 KB |
testcase_30 | AC | 278 ms
10,228 KB |
ソースコード
import sys from collections import deque, defaultdict,Counter from copy import deepcopy from bisect import bisect_left, bisect_right, insort_left, insort_right from heapq import heapify, heappop, heappush from itertools import product, permutations, combinations, combinations_with_replacement,accumulate from functools import reduce from math import gcd, sin, cos, tan, asin, acos, atan, degrees, radians, ceil, floor, log, sqrt, ceil, floor, pi, hypot from string import ascii_lowercase from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN sys.setrecursionlimit(1000000) INF = 10**12 MOD = 10**9+7 # MOD = 998244353 yes="Yes" no="No" #| from random import randint def II():return int(input()) def SI():return str(input()) def MI():return map(int,input().split()) def MS():return map(str,input().split()) def LI():return list(map(int,input().split())) def SLI():return sorted(list(map(int,input().split()))) def LS():return list(map(str,input().split())) n=int(input()) i=0 while i*i*i<n: i+=1 if i**3==n: print("Yes") else: print("No")