11 条题解

  • 0
    @ 2023-5-11 21:49:58

    请叫我装x之王:

    #include <iostream>
    #include <iomanip>
    using namespace std;
    int main()
    {
        int a, b, c;
        cin >> a >> b >> c;
        cout << setw(8) << right << a;
        cout << setw(8) << right << b;
        cout << setw(8) << right << c;
        return 0;
    }
    

    yeap! image

    • @ 2023-5-11 22:08:36

      神马离谱玩意儿?求大神帮改!

    • @ 2023-6-1 21:26:43

      “只有一行,按照格式要求依次输出三个整数,之间以一个空格分开。” 空格:那我走 正确代码:

      #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;
      }
      
    • @ 2023-6-28 22:23:50

      @ Thanks♪(・ω・)ノ

信息

ID
847
时间
1000ms
内存
128MiB
难度
6
标签
递交数
1108
已通过
339
上传者