7 条题解

  • 1
    @ 2023-9-6 19:52:26
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        cout << 100 + 100 / 10 + 10 - 1;
        return 0;
    }
    

    A

    • 1
      @ 2023-8-19 19:22:21

      半夜打卡第二题

      没啥好讲的,上代码🚀️

      #include <bits/stdc++.h>
      using namespace std;
      int x;
      int main()
      {
          while (1)
          {
              if ((x % 2 == 1) && (x % 3 == 2) && (x % 5 == 4) && (x % 6 == 5) && (x % 7 == 0))
              {
                  cout << x;
                  break;
              }
              x++;
          }
          return 0;
      }
      
      • 1
        @ 2022-10-31 20:43:54

        为什么没题解,太简单了?

        #include <iostream>
        using namespace std;
        int main()
        {
            cout << 119;
            return 0;
        }
        
        • 0
          @ 2024-6-14 21:02:20

          doge #include<bits/stdc++.h> using namespace std; int main() { cout<<119; return 0; }

          • 0
            @ 2024-6-4 20:47:16
            #include <iostream>
            using namespace std;
            int main()
            {
                for (int i=1;i<=100000;i++)//定一个较大的数
                {
                    if (i%2==1 && i%3==2 && i%5==4 && i%6==5 && i%7==0)//判断条件是否成立
                    {
                        cout << i;
                        return 0;//如果条件成立,结束程序
                    }
                }
                return 0;
            }
            
            • 0
              @ 2023-7-14 20:50:13
              #include <iostream>
              using namespace std;
              int main(){
                  for(int i=1;;i++){
                      if((i*30-1)%7==0){
                          cout<<i*30-1<<endl;
                          break;
                      }
                  }
                  return 0;
              }
              
              • 0
                @ 2023-4-20 21:40:59

                老老实实打代码()

                #include<bits/stdc++.h>
                using namespace std;
                int main()
                {
                    int x=0;
                    while(++x)
                        if (x%2==1&&x%3==2&&x%5==4&&x%6==5&&x%7==0)
                        {
                            cout<<x;
                            return 0;
                        }
                    return 0;
                }
                • 1

                【入门】爱因斯坦的数学题

                信息

                ID
                264
                时间
                1000ms
                内存
                16MiB
                难度
                1
                标签
                递交数
                179
                已通过
                122
                上传者