6 条题解

  • 3
    @ 2024-1-11 13:11:50

    世界上最好的题解😄

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        char a[100],b[100],c[100];
        scanf("%s%s%s",&a,&b,&c);
        printf("%8s %8s %8s",a,b,c);
        return 0;
    }
    

    看完的麻烦点个赞呗👀️

    • 1
      @ 2023-10-14 14:00:04

      setw()可以输出指定宽度的数据

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int a,b,c;
          cin>>a>>b>>c;
          cout<<setw(8)<<a<<" "<<setw(8)<<b<<" "<<setw(8)<<c<<endl;
          return 0;
      }
      
      • 0
        @ 2023-10-24 23:10:30
        #include <iostream>
        #include <bits/stdc++.h>
        using namespace std;
        const int N=1e7+10;
        const int INF=0x3f3f3f3f;
        int main()
        {
            int a, b, c;
            cin >> a >> b >> c;
            cout << setw(8)<< a<<" ";
            cout << setw(8)<< b<<" ";
            cout << setw(8)<< c;
            return 0;
        }
        
        • @ 2024-5-6 22:11:01

          多余的 #include <iostream>

      • 0
        @ 2023-8-12 14:48:27
        #include <iostream>
        #include <iomanip>
        using namespace std;
        int a,b,c;
        int main()
        {
        	cin>>a>>b>>c;
        	cout<<setw(8)<<a<<" "<<setw(8)<<b<<" "<<setw(8)<<c<<endl;
        	return 0;
        }
        
        • 0
          @ 2023-5-9 18:56:47
          #include <iostream>
          #include <iomanip>
          using namespace std;
          int main()
          {
              int a, b, c;
          	cin >> a >> b >> c;
          	cout << setw(8) << a << " " << setw(8) << b << " " << setw(8) << c;
          	return 0;
          }
          
          • -1
            @ 2022-12-27 9:47:49
            #include <iostream>
            #include <iomanip>
            using namespace std;
            int a,b,c;
            int main()
            {
            	cin>>a>>b>>c;
            	cout<<setw(8)<<a<<" "<<setw(8)<<b<<" "<<setw(8)<<c<<endl;
            	return 0;
            }
            
            • 1

            信息

            ID
            6803
            时间
            1000ms
            内存
            128MiB
            难度
            1
            标签
            (无)
            递交数
            328
            已通过
            134
            上传者