language: C++ 4.7.2 (gcc-4.7.2)
date: 861 days 0 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
int main(int argc, char** argv) {
    for (int i = 32; i < 100; ++i) { 
        // anything less than 32 or greater than 100 
        // doesn't result in a 4-digit number
        int s = i*i;
        if (s/100%11==0 && s%100%11==0) {
            std::cout << i << '\t' << s << std::endl;
        }
    }
}