12 lines
264 B
C++
12 lines
264 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
for (int i = 1; i <= 100000; i++) {
|
|
int a = sqrt(i + 100);
|
|
int b = sqrt(i + 268);
|
|
if (a * a == i + 100 && b * b == i + 268) printf("%d\n", i);
|
|
}
|
|
return 0;
|
|
} |