Run ID:110075
提交时间:2025-02-14 12:42:27
#include <iostream> using namespace std; int main(){ int cnt=0; for(int i=1;i<=100;i++) for(int j=i;j<=100;j++) for(int k=j;k<=100;k++) if( i*i + j*j == k*k) { cout<< i <<" "<<j <<" "<<k <<endl; cnt++; } cout<<cnt; return 0; }