山东智趣岛论坛

标题: ti7 [打印本页]

作者: liuzixuan    时间: 2023-11-12 19:01
标题: ti7
[C++] 纯文本查看 复制代码
#include<iostream>
using namespace std;
int main()
{
        int t;
        int j;
        int tu;
        int g;
        cin>>t>>j;
        tu=j/2-t;
        g=t-tu;
        cout<<tu<<" "<<g<<endl;
       
}






欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3