zj hace 5 años
padre
commit
f912cc213d
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      Caabb.cpp

+ 16 - 0
Caabb.cpp

@@ -0,0 +1,16 @@
+#include<bits/stdc++.h>
+
+using namespace std;
+
+int main() {
+    for (int i = 10; i*i <= 9999; i++) {
+        int n = i * i;//n is a square number;
+        if (n < 1000 || n > 9999)continue;
+        int high = n / 100;
+        int low = n % 100;
+        if (high % 11 == 0 && low % 11 == 0) {
+            cout << n << endl;
+        }
+    }
+    return 0;
+}