#2551: ans


1752786-4@g.puiching.edu.mo (林敬晉P5A08(JalenLam_progamer)(IQ...)

School : Pui Ching Middle School
ID : 3260
IP address : [192.168.120.33]
Last Login :
2025-06-05 11:37:15
a141. 尋找特殊的數 | From: [192.168.120.33] | Post Date : 2025-06-13 09:42

python:

import math

for i in range(1,10001):

    if int(math.sqrt(i+150))==math.sqrt(i+150):

        if int(math.sqrt(i+150+136))==math.sqrt(i+150+136):

            print(i)

            break

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the ans is 75

so

 

 

 

 

 

 

 

c:

#include<stdio.h>

int main(){

    printf("75");

}

 
ZeroJudge Forum