問題一覧 > 通常問題

No.1700 floor X

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 251
作問者 : harurun / テスター : first_vil
お気に入りにしたユーザー ProblemId : 6992 / 自分の提出
問題文最終更新日: 2021-09-14 13:07:50
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 317 (順位表) の他の問題:

Problem Statement

You are given a positive integer $N$. Find $\lfloor \sqrt{N} \rfloor$.


Answer $T$ test cases.


What is $\lfloor x \rfloor$? (click to expand)

It denotes the largest integer not exceeding $x$.

Input

$T$

The number of test cases $T$ is given on line $1$.

$N$

For each test case, $N$ is given on 1 line.

Constraints

  • $1≤T≤10^4$

  • $1≤N≤10^{18}$

  • All input values are integers.

Output

Print 1 line for each test case, for a total of $T$ lines. Print a newline at the end.

Sample

Sample 1
Input
3
1
4
10
Output
1
2
3

From top to bottom, we have

$\sqrt{1}=1$

$\sqrt{4}=2$

$\sqrt{10}\simeq 3.1622776601683795...$

.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。