4 条题解

  • 3
    @ 2022-7-24 23:19:34

    #include <iostream>

    #include <cstdio>

    using namespace std;

    int main()

    {

    int x,y,a=0;

    scanf("%d %d",&x,&y);

    if(x<y){

    a=x;

    x=y;

    y=a;

    }

    printf("%d\n",x);

    printf("%d",y);

    }

  • 2
    @ 2022-5-28 16:34:26
    using namespace std;
    int main()
    {
      int a,b,c;
      cin>>a>>b;
      if(a>b){
      	cout<<a<<endl<<b<<endl;
      }else{
      	cout<<b<<endl<<a<<endl;
      }
      return 0;
    }
    
    • 1
      @ 2022-8-15 19:50:59
      using namespace std;
      int main(){
        int x,y;
        cin>>x>>y;
        if(x>=y){
        	cout<<x<<endl<<y;
        }
        if(x<y){
        	cout<<y<<endl<<x;
        }
        return 0;
      }
      
      
      • 1
        @ 2022-7-20 18:55:22

        #include <iostream> #include <algorithm> using namespace std;

        int main() { int a,b,c,d,e,f,g=0,h=0; cin >> a >> b >> c >> d >> e >> f; g = max({b,c,d,e,f}) ; h = g - a + 1; cout << h << endl; return 0; }

        • 1

        信息

        ID
        25
        时间
        1000ms
        内存
        256MiB
        难度
        4
        标签
        递交数
        136
        已通过
        58
        上传者