6 条题解

  • -1
    @ 2023-7-17 19:53:00
    #include <bits/stdc++.h>
    
    using namespace std;
    int A,B,C;
    int main ()
    {
            for(int a=1;a<=20;a++){
                A=pow(a,2);
                for(int c=3;c<=20;c++){
                    C=pow(c,2);
                    for(int b=a;b<=20;b++){
                        B=pow(b,2);
                    if(C==A+B && a<=b && b<=c ){
                        cout<<a<<" "<<b<<" "<<c<<endl;
                    }
                }
            }
        }
        return 0;
    }
    

    信息

    ID
    65
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    615
    已通过
    295
    上传者