#2551: ans


1752786-4@g.puiching.edu.mo (P6A08林敬晉)

School : Pui Ching Middle School
ID : 3260
IP address : [192.168.120.33]
Last Login :
2025-11-25 19:17:50
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