4 条题解

  • 4
    @ 2022-12-10 17:45:20
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a, b, c, d, x, n;
        for(n=32; n<=99; n++)
        {
            x = n * n;
            a = x / 1000;
            b = x / 100 % 10;
            c = x % 100 / 10;
            d = x % 10;
            if((a == b) && (c == d))
            {
                cout << x;//答案:7744
            }
        }
        return 0;
    }//已AC
    
    • @ 2022-12-24 16:28:43
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          cout << 7744;
          return 0;
      }
      

      总的来说,你的代码输出的是7744,不如直接输出。

    • @ 2023-6-22 10:20:49

      啊对对对

    • @ 2024-3-20 20:38:40

      @ 啊对对对

  • 0
    @ 2023-8-1 11:13:41
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        cout << "7744";
        return 0;
    }
    
    
    • 0
      @ 2023-7-8 7:50:32

      #include <iostream> using namespace std; int main() { cout << 7744; return 0; }

      • 0
        @ 2022-4-7 11:14:00

        #include<bits/stdc++.h> using namespace std; int main() { for(int i=1100;i<=9999;i++)if((i/100%10i/1000%10)&&(i%10i/10%10)&&(int(sqrt(i))==float(sqrt(i))))cout<<i<<endl; return 0; }//100AC

        • 1

        信息

        ID
        93
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        递交数
        135
        已通过
        93
        上传者