Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

 
 
 
 
General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
198860078 Practice:
Hs1534
1809B - 9 Python 3 Accepted 140 ms 0 KB 2023-03-23 23:28:56 2023-03-25 00:42:57
→ Source
import math
for _ in range(int(input())):
    n = int(input())
    def sol(n):
        m = math.floor(math.sqrt(n))
        if m*m >= n:
            return m-1
        else:
            return m
    print(sol(n))
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details