← Back to List

2420번: 사파리월드 ↗

Solutions

C++14
121 B | 121 chars
#include <iostream>
using namespace std;
long long A,B;
int main()
{
	cin>>A>>B;
	if(A-B>0) cout<<A-B;
	else cout<<B-A;
}