8 条题解

  • 2
    @ 2023-7-17 16:13:38
    #include <iostream>
    using namespace std;
    int exc(int m){
        int z=m/10;
        int x=m%10;
        int y=x*10+z;
        return y;
    }
    int main(){
        int a,s=0;
        cin>>a;
        for(int i=10;i<=99;i++){
            if(i+a==exc(i)+exc(a)&&i!=exc(a)&&i%10!=0){
                cout<<i<<endl;
                s+=1;
            }
        }
        if(s==0){
            cout<<"No";
        }
    }
    

    c++

    • 1
      @ 2023-8-30 15:12:46

      Python的哦~

      x=input()
      x1=int(x[::-1])
      x=int(x)
      i=0
      for y in range(10,100):
          if y%10==0:
              continue
          y1=str(y)
          y1=int(y1[::-1])    
          if x+y==x1+y1 and x!=y1:
              print(y)
              i+=1
      if i==0:
          print("No")
      
      • 0
        @ 2025-4-19 17:27:16

        #include <bits/stdc++.h>

        using namespace std; int a,b,c,d,e,s=0; int main() { cin>>a; b=a/10; c=a%10; for(int i=10;i<=99;i++){ d=i/10; e=i%10; if(a+ic10+b+e10+d && a!=e*10+d && i%10!=0){ cout<<i<<endl; s++; }else{continue;} }if(s0) cout<<"No"<<endl; return 0; }

        • 0
          @ 2025-3-5 13:00:38
          a=str(input())
          b=int(a[1]+a[0])
          c=int(a)
          d=0
          for i in range(10,101):
              if i+c==(i%10*10+i//10)+b and i!=a and i!=b and (i%10*10+i//10)>=10:
                  print(i)
                  d+=1
          if d==0:
              print("No")
          
          • 0
            @ 2023-7-18 7:29:45

            #include

            using namespace std;

            int main() { int a; cin>>a; int b,s=0; b=a/10+a%1010;b>=10;b<100; for(int i=10;i<100;i++){ int j=i/10+i%1010; if(i+aj+b and i!=b and b>9 and j>9){ s+=1; cout<<i<<endl; }}if(s0){ cout<<"No";}

            return 0;
            

            }

            • 0
              @ 2023-7-17 16:29:36

              #include <bits/stdc++.h>

              using namespace std; long long A,B=10,a,a1,b,b1,judge=1; int main () { cin>>A; if(A>=10 && A<100){ a=A/10; a1=A-10a; while(B<100){ b=B/10; b1=B%10; if(B+A==a+10a1+b+b110 && B%10!=0){ cout<<B<<endl; judge=0; } B=B+1; if(BA || B10a1+a ){ B=B+1; } } if(judge==1){ cout<<"No"; } } else{ cout<<"No"; } return 0; }

              • 0
                @ 2023-7-17 16:02:09
                #include <iostream>
                #include<cmath>
                using namespace std;
                
                int main()
                {
                    int a;
                    cin>>a;
                    int b,s=0;
                    b=a/10+a%10*10;
                    for(int i=10;i<100;i++){
                        int j=i/10+i%10*10;
                        if(a+i==b+j && i!=b &&b>9&&j>9){
                            s=s+1;
                            cout<<i<<endl;
                        }
                    }
                    if (s==0){
                            cout<<"No";
                    }
                
                    return 0;
                }
                
                • 0
                  @ 2022-7-11 16:11:41
                  int a,b,c,d,e,sum=0;
                  	cin>>a;
                  	b=a/10;
                  	c=a%10;
                  	d=c*10+b;
                  	for(int i=1;i<=9;i++)
                  	{
                  		for(int j=1;j<=9;j++)
                  		{
                  			if((a+i*10+j)==(d+j*10+i)&&(i*10+j!=d))
                  			{
                  				cout<<i*10+j<<endl;
                  				sum++;
                  			}	
                  		}
                  	}
                  	if(sum==0)cout<<"No";
                  
                  • 1

                  信息

                  ID
                  70
                  时间
                  1000ms
                  内存
                  128MiB
                  难度
                  6
                  标签
                  递交数
                  579
                  已通过
                  191
                  上传者