7 条题解

  • 4
    @ 2023-8-19 20:48:25

    半夜打卡第12题

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n = 100;
        while (1)
        {
            if (n > 999) break;
            if (n / 100 == n % 10) cout << n << endl;//百位等于个位就好👀️ 
            n++;
        }
        return 0;
    }
    
    • 2
      @ 2023-8-1 16:09:40

      easy~~

      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      	int i=100;
      	while(i<=999){
      		if(i%10==i/100%10){
      			cout<<i<<endl;
      		}
      		i=i+1;
      	}
      	return 0;
      }
      
      • 1
        @ 2024-1-30 16:39:49
        《只有六行的代码》
        #include <iostream>
        using namespace std;
        int main(){
            for(int i=1;i<=9;i++) for(int j=0;j<=9;j++) cout<<i<<j<<i<<endl;
            return 0;
        }
        
        • 0
          @ 2024-4-22 20:26:04

          半夜打卡第16题,不好勿喷,养成好习惯,先点赞,再看题。

          #include <bits/stdc++.h>
          using namespace std;
          int main()
          {
              for(int i=100;i<=999;i++)
              {
                  if(i%10==i/100)
                  {
                      cout<<i<<endl;
                  }
              }
              return 0;
          }
          
          • 0
            @ 2023-10-28 19:16:29
            #include <iostream>
            using namespace std;
            int main(){
                for(int i=100;i<=999;i++)if(i/100==i%10)cout<<i<<endl;
                return 0;
            }
            
            • 0
              @ 2023-8-28 20:33:26

              `

              #include <iostream>
              using namespace std;
              int main()
              {
                  for(int i = 1;i <= 9;i++)
                  {
                      cout << i << "0" << i << endl;
                      cout << i << "1" << i << endl;
                      cout << i << "2" << i << endl;
                      cout << i << "3" << i << endl;
                      cout << i << "4" << i << endl;
                      cout << i << "5" << i << endl;
                      cout << i << "6" << i << endl;
                      cout << i << "7" << i << endl;
                      cout << i << "8" << i << endl;
                      cout << i << "9" << i << endl;
                  }
                  return 0;
              }
              
              • 0
                @ 2022-12-16 22:13:02
                #include <iostream>//hetao3097453
                using namespace std;
                int main()
                {
                    for(int i = 100;i <= 999;i++)
                    {
                        if(i % 10 == i / 100)
                        {
                            cout << i << endl;
                        }
                    }
                    return 0;
                }
                
                
                • 1

                【入门】请输出所有的3位对称数

                信息

                ID
                698
                时间
                1000ms
                内存
                64MiB
                难度
                1
                标签
                递交数
                98
                已通过
                73
                上传者