#include <stdio.h>
int main(void)
{
int a, b, c; /* 前提1:a<bとする */
for (a = 1; a * a < c * c / 2; ++a) { /* from 前提1 */
for (b = a + 1; a * a + b * b < c * c; ++b);/* from 前提1 */
if (a * a + b * b == c * c) {
return 0;
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKHZvaWQpCnsKICBpbnQgYSwgYiwgYzsgLyog5YmN5o+Q77yR77yaYTxi44Go44GZ44KLICovCiAgcHJpbnRmKCJj44Gu5YCk44GvPyAiKTsKICBzY2FuZigiJWQiLCAmYyk7CiAgZm9yIChhID0gMTsgYSAqIGEgPCBjICogYyAvIDI7ICsrYSkgeyAvKiBmcm9tIOWJjeaPkO+8kSAqLwogICAgZm9yIChiID0gYSArIDE7IGEgKiBhICsgYiAqIGIgPCBjICogYzsgKytiKTsvKiBmcm9tIOWJjeaPkO+8kSAqLwogICAgaWYgKGEgKiBhICsgYiAqIGIgPT0gYyAqIGMpIHsKICAgICAgcHJpbnRmKCJh44GvJWTjgafjgIFi44GvJWRcbiIsIGEsIGIpOwogICAgICByZXR1cm4gMDsKICAgIH0KICB9CiAgcHJpbnRmKCLlrZjlnKjjgZfjgb7jgZvjgpNcbiIpOwogIHJldHVybiAwOwp9Cg==