結果
問題 | No.1700 floor X |
ユーザー | vwxyz |
提出日時 | 2021-10-08 21:53:15 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 836 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 11,000 KB |
実行使用メモリ | 10,836 KB |
最終ジャッジ日時 | 2023-09-16 08:58:38 |
合計ジャッジ時間 | 4,220 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
10,424 KB |
testcase_01 | AC | 53 ms
10,664 KB |
testcase_02 | AC | 53 ms
10,656 KB |
testcase_03 | AC | 54 ms
10,596 KB |
testcase_04 | AC | 53 ms
10,684 KB |
testcase_05 | AC | 55 ms
10,712 KB |
testcase_06 | AC | 54 ms
10,592 KB |
testcase_07 | AC | 53 ms
10,836 KB |
testcase_08 | AC | 54 ms
10,596 KB |
testcase_09 | AC | 53 ms
10,728 KB |
testcase_10 | AC | 53 ms
10,724 KB |
testcase_11 | AC | 53 ms
10,780 KB |
testcase_12 | AC | 53 ms
10,668 KB |
testcase_13 | AC | 53 ms
10,744 KB |
testcase_14 | AC | 53 ms
10,680 KB |
testcase_15 | AC | 54 ms
10,692 KB |
testcase_16 | AC | 53 ms
10,680 KB |
testcase_17 | AC | 53 ms
10,672 KB |
testcase_18 | AC | 52 ms
10,712 KB |
testcase_19 | AC | 53 ms
10,660 KB |
testcase_20 | AC | 53 ms
10,700 KB |
testcase_21 | AC | 57 ms
10,516 KB |
testcase_22 | AC | 55 ms
10,504 KB |
testcase_23 | AC | 58 ms
10,608 KB |
testcase_24 | AC | 57 ms
10,508 KB |
testcase_25 | AC | 57 ms
10,504 KB |
testcase_26 | AC | 55 ms
10,428 KB |
testcase_27 | AC | 56 ms
10,492 KB |
testcase_28 | AC | 57 ms
10,504 KB |
testcase_29 | AC | 56 ms
10,504 KB |
testcase_30 | AC | 56 ms
10,676 KB |
testcase_31 | AC | 57 ms
10,568 KB |
testcase_32 | AC | 58 ms
10,428 KB |
testcase_33 | AC | 58 ms
10,492 KB |
testcase_34 | AC | 56 ms
10,612 KB |
testcase_35 | AC | 58 ms
10,536 KB |
testcase_36 | AC | 55 ms
10,428 KB |
testcase_37 | AC | 57 ms
10,524 KB |
testcase_38 | AC | 57 ms
10,432 KB |
testcase_39 | AC | 55 ms
10,680 KB |
testcase_40 | AC | 56 ms
10,532 KB |
testcase_41 | AC | 56 ms
10,540 KB |
testcase_42 | AC | 31 ms
10,392 KB |
testcase_43 | AC | 56 ms
10,504 KB |
testcase_44 | AC | 58 ms
10,508 KB |
ソースコード
import bisect import copy import decimal import fractions import functools import heapq import itertools import math import random import sys from collections import Counter,deque,defaultdict from functools import lru_cache,reduce from heapq import heappush,heappop,heapify,heappushpop,_heappop_max,_heapify_max def _heappush_max(heap,item): heap.append(item) heapq._siftdown_max(heap, 0, len(heap)-1) def _heappushpop_max(heap, item): if heap and item < heap[0]: item, heap[0] = heap[0], item heapq._siftup_max(heap, 0) return item from math import gcd as GCD read=sys.stdin.read readline=sys.stdin.readline readlines=sys.stdin.readlines T=int(readline()) for t in range(T): N=int(readline()) ans=math.sqrt(N)-3 ans=round(ans) while ans<0 or (ans+1)**2<=N: ans+=1 print(ans)