Submission

Status:

PP-P---PP-

Subtask/Task Score:

50/100

Score: 50

User: agnes_chan

Problemset: Weird Castle

Language: python

Time: 0.011 second

Submitted On: 2026-05-05 22:37:20

def sol(N):
    r = int((N-1)**0.5)
    return 2*r-(N%2==r%2)
A,B = map(int,input().split())
print(sol(A)-sol(B))