12 条题解

  • 2
    @ 2024-11-20 13:20:44

    #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,x; for(x=10;x<=100;x++) { a=x/10; b=x%10; c=10*b+a; if((c-x)==36) { cout<<x<<endl; } } return 0; }

    • 1

      #include<bits/stdc++.h> using namespace std; int main() { int n,m,f,r; for(int a=1;a<=9;a++) { n=10a; m=a; for(int b=1;b<=9;b++) { r=b; f=10b;

      if((f+m-n-r)==36)

      cout<<n+r<<endl; } }

      return 0;}

      • 1
        @ 2024-1-7 17:41:08

        #include<bits/stdc++.h> using namespace std; int main() { int x,i,j,y; for(x=10;x<100;x++){ i=x%10; j=x/10; y=10*i+j; if(y-x==36){ cout<<x<<endl; }} return 0; }

        • 1
          @ 2023-12-24 13:26:16

          #include<bits/stdc++.h> using namespace std; int main() { int x,i,j,y; for(x=10;x<100;x++){ i=x%10; j=x/10; y=10*i+j; if(y-x==36){ cout<<x<<endl; } }

          } 无测试节点

          • 0
            @ 2025-4-27 13:24:56

            #include<bits/stdc++.h> using namespace std; int main() { int x,g,s,y; for(x=10;x<100;x++) { g=x%10;s=x/10; y=g*10+s; if(y==x+36) { cout<<x<endl; } return 0; }

            不加endl会报错

            • 0
              @ 2025-2-26 13:48:23

              #include<bits/stdc++.h> using namespace std; int main() { int x,y; for(x=10;x<=99;x++) { y=x/10+(x%10)*10; if(y-x==36) cout<<x<<endl; } return 0; }

              • 0
                @ 2024-11-23 13:36:29

                #include<bits/stdc++.h> using namespace std; int main() { int a,b,x,y; for(int a=1;a<=9;a++) { for(int b=1;b!=a;b++) { x=b10+a; y=a10+b; if(y-x==36) cout<<x<<endl; continue; } } return 0; }

                • 0
                  @ 2024-11-14 13:28:50

                  #include<bits/stdc++.h> using namespace std; int main() { int a=10,b,c,d; for(;a<=99;a++) { b=a/10;c=a%10;d=c*10+b; if(36==d-a) cout<<a<<" "; } return 0; }

                  • 0
                    @ 2024-11-14 13:21:45

                    #include<bits/stdc++.h> using namespace std; int main() {for(int y,x=10;x<100;x++) {y=(x%10)*10+x/10; if(y-x==36) cout<<x<<" "; } return 0; }

                    • 0
                      @ 2024-11-14 13:12:25

                      #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a; for(a=10;a<100;a++) {b=a%10;c=a/10;d=10*b+c; if(d==a+36)cout<<a<<endl; } }

                      • 0
                        @ 2024-11-14 13:06:59

                        #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; for(int i=10;i<100;i++) { d=i%10; c=i/10; a=d*10+c; if(a-i==36) { cout<<i<<endl; } } return 0; }

                        • 0
                          @ 2024-10-3 17:50:59
                          #include<bits/stdc++.h> 
                          using namespace std; 
                          int main() 
                          { 
                           int x,i,j,y; 
                           for(x=10;x<100;x++)
                           { 
                           i=x%10; 
                           j=x/10; 
                           y=10*i+j;
                           if(y-x==36)
                           { 
                           cout<<x<<endl; 
                           } 
                           }
                          }
                          
                          • 1

                          信息

                          ID
                          47
                          时间
                          1000ms
                          内存
                          256MiB
                          难度
                          5
                          标签
                          递交数
                          232
                          已通过
                          96
                          上传者