2 条题解

  • 0
    @ 2024-2-6 21:34:47
    #include<bits/stdc++.h>
    using namespace std;
    
    int main()
    {
        int num,a,b,c,d;
        cin>>num;
        a=num%10;
        b=num/10%10;
        c=num/100%10%10;
        d=num/1000%10%10%10;
        cout<<d<<" "<<c<<" "<<b<<" "<<a;
        return 0;
    }
    
    • 0
      @ 2023-8-19 17:38:39

      #include #include using namespace std; int main() { int x,s,a,d,c; cin>>x; s=x/1000; a=x/100%10; d=x/10%10; c=x%10; cout<<s<<" "<<a<<" "<<d<<" "<<c<<endl; return 0 ;

      • 1

      信息

      ID
      433
      时间
      1000ms
      内存
      64MiB
      难度
      7
      标签
      递交数
      25
      已通过
      9
      上传者