45002023-03-29 10:56:57PallanekPéterSakktábla (75 pont)python3Wrong answer 65/7517ms13452 KiB
import math
be=[int(i) for i in input().split()]
n=min(be)
m=max(be)
while math.sqrt(n*2)%1!=0 and math.sqrt(n*2+1)%1!=0:
    n-=1
if math.sqrt(n*2)%1==0:
    print(int(math.sqrt(n*2)))
elif math.sqrt(n*2+1)%1==0:
    print(int(math.sqrt(n*2+1)))
SubtaskSumTestVerdictTimeMemory
base65/75
1Accepted0/017ms11312 KiB
2Accepted0/017ms11516 KiB
3Accepted5/517ms11792 KiB
4Accepted5/517ms12048 KiB
5Accepted5/517ms12132 KiB
6Wrong answer0/517ms12280 KiB
7Wrong answer0/517ms12504 KiB
8Accepted5/517ms12596 KiB
9Accepted5/517ms12872 KiB
10Accepted5/517ms13060 KiB
11Accepted7/717ms13016 KiB
12Accepted7/717ms13308 KiB
13Accepted7/717ms13388 KiB
14Accepted7/717ms13248 KiB
15Accepted7/717ms13452 KiB