3 条题解

  • 1
    @ 2023-7-14 20:29:37
    #include <iostream>
    using namespace std;
    bool power(int x){
        for(int i=1;i*i<=x;i++)if(i*i==x)return true;
        return false;
    }
    int main(){
        int n=0;
        while(true){
            if(power(n+100)&&power(n+268)){
                cout<<n<<endl;
                return 0;
            }
            n++;
        }
        return 0;
    }
    
    • 0
      @ 2023-4-20 21:47:13

      直接看样例()

      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          cout<<21;
          return 0;
      }
      • 0
        @ 2022-12-24 16:39:43
        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
            cout << 21;
            return 0;
        }
        

        试出的正确答案。

        • 1

        信息

        ID
        266
        时间
        1000ms
        内存
        16MiB
        难度
        1
        标签
        递交数
        119
        已通过
        83
        上传者