結果
| 問題 | No.1700 floor X |
| コンテスト | |
| ユーザー |
sanao10000
|
| 提出日時 | 2021-10-08 22:47:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 227 ms / 2,000 ms |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 20,928 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-24 18:48:03 |
| 合計ジャッジ時間 | 15,489 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 44 |
ソースコード
import math
n=int(input())
t=[]
for i in range(n):
s=int(input())
ans=math.floor(math.sqrt(s))
out=0
left=ans-2
right=ans+2
for j in range(left,right+1):
if(j**2<=s):
out=j
print(out)
sanao10000