1 条题解

  • 0
    @ 2024-8-2 16:19:44

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    int x,y,z;
    int main() {
     cin>>x>>y;
     z = x + y;
     cout<<z / 2<<" "<<z % 2;
     return 0;
    }
    
    • 1

    信息

    ID
    997
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    4
    已通过
    4
    上传者