mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
209 B
C++
14 lines
209 B
C++
#include <iostream>
|
|
#include <complex>
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int a,b,c,d;
|
|
cin>>a>>b>>c>>d;
|
|
complex<int> x(a,b);
|
|
complex<int> y(c,d);
|
|
cout<<x+y<<" "<<x-y<<endl;
|
|
return 0;
|
|
}
|