No.1700 floor X
問題文最終更新日: 2021-09-14 13:07:50
English (AI translation)
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もしくは右上の雲マークをクリックしてアカウントを作成してください。
harurun