90pts WA
查看原帖
90pts WA
738896
pisuom楼主2023/1/17 18:36
#include<bits/stdc++.h>

using namespace std;

int main() {

	long long n;
	cin >> n;
	for (int i = 1;i < 700001; i++){
		for (int j = 1; j < 700001; j++){
			if (i*i+j*j==n*n){
				cout << i << " " << j << endl;
				return 0;
			}
		}
	}
}

90ptsWA,各位大犇帮帮我吧!!!

2023/1/17 18:36
加载中...