Go: package main

import (
	"fmt"
	"math"
)

func main() {
	var a, b float64
	fmt.Scanf("%v %v", &a, &b)
	fmt.Println(math.Abs(a - b))
}

Python: x1,x2=(int(x) for x in input().split())
if x2>x1:
    print(int(x2-x1))
else:
    print(int(x1-x2))

Python: a,b=map(int,input().split())
if a<=b:
    print(b-a)
else:
    print(a-b)

Python: x1,x2=map(int,input().split())
if x1>=x2:
    print(x1-x2)
elif x1<x2:
    print(x2-x1)

Python: x1, x2 = map(int, input().split())

if x1<=x2:
    d = x2-x1
else:
    d = x1-x2
    
print(d)

Python: x1,x2=map(int,input().split())
print('{:.0f}'.format(((x1-x2)**2)**(1/2)))

Python: x1,x2 =map(int,input().split())

print (abs(x1 - x2))

Python: x1,x2 = map(int,input().split())
if x1 > x2 :
    print(int(x1-x2))
else :
    print(int(x2-x1))

Python: a,b=map(int,input().split())

if a>=b:
    print(a-b)
else:
    print(b-a)

Python: # coding: utf-8
# Your code here!
a,b=map(int,input().split())
if(a>b):
    print(a-b)
elif(a<b):
    print(b-a)
else:
    print("0")

Python: a , b = map (int , input() . split())
if( a>b ):
    print( a-b )
else:
    print( b-a )

Python: x,y=map(int,input().split())
if x==y:
    print(0)
elif x>y:
    print(x-y)
else:
    print(y-x)

Python: x1,x2 = map(int, input().split())
c=abs(x1-x2)
print(c)

Python: # coding: utf-8
# Your code here!
a,b = map(int,input().split())
if a>b:
    print(a-b)
elif a<b:
    print(b-a)
else:
    print(a-b)

Python: a,b=map(int,input().split())
if a>b:print(a-b)
else:print(b-a)

Python: a,b=map(int,input().split())

c=(b-a)

if c>0:
   print(c)
else:
    print(-c)

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    cout << abs(a-b) << endl;
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
int x1,x2;
cin>>x1>>x2;
    
if(x1<x2)cout<<x2-x1<<endl;
else
cout<<x1-x2<<endl;


return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;

int main() {
  int x, y;
  cin >> x >> y;
  cout << abs(x - y) << endl;
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(){

int a , b , c ;
cin >> a >> b ;
c = a - b ;
if (c < 0 ) cout << c * -1 <<endl ;
cout << c << endl ;

return 0;
}

C++: #include <iostream>
#include<cmath>
using namespace std;
int main(void){

	double x1, x2;
	cin >> x1 >> x2;

	cout << fabs(x1 - x2) << endl;

}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    int x1, x2;
    cin >> x1 >> x2;
    cout << abs(x1 - x2) << "\n";
    return 0;
}

C++: #include<iostream>
using namespace std;

int main(){
    int x1,x2;
    cin >> x1 >> x2;
    if(x1<x2){
       cout << x2-x1 << endl;
    }
    else if(x2<x1){
        cout << x1-x2 << endl;
    }else{
        cout << 0 << endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main (){
  int x1, x2;
  cin>>x1>>x2;
  
  if( x1 <= x2 ) cout<<x2-x1<<endl;
  else cout<<x1-x2<<endl;

  return 0;
}

C++: //yukicoder@cpp14
//author:luckYrat(twitter:@luckYrat_)
//<ここに一言>

//せんげん！
#include <iostream>

#include <cmath>
#include <algorithm>
#include <iomanip>

#include <string>
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <bitset>

#include <cctype>
#include <utility>
#include <climits>


//なまえくーかん！
using namespace std;
using ll = long long;
using P = pair<ll,ll>;

//てーすう！
const int mod = 1000000007;
const int inf = (1<<30)-1;
const ll linf = (1LL<<62LL)-1;
const double EPS = (1e-10);

//でふぁいん！
#define anyfill(n,s) setw(n) << setfill(s)
#define loop(s) for(int i = 0; s > i; i++)
#define rep(i,q) for(int i = 0; (q) > i; i++)
#define repp(i,n,q) for(int i = n; (q) > i; i++)
#define dep(i,q) for(int i = (q); 0 < i; i--)

//みじかく！
#define pb push_back
#define fir first
#define scn second
#define ednl endl

//いぇすのー！
#define YesNo(a) (a?"Yes":"No")
#define YESNO(a) (a?"YES":"NO")
#define yesno(a) (a?"yes":"no")

//きんぼーnほーこー！！
P ar4[4] = {{0,1},{0,-1},{1,0},{-1,0}};
P ar8[8] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};
/*
確認ポイント
cout << fixed << setprecision(n) << 小数計算//n桁の小数表記になる

計算量は変わらないが楽できるシリーズ
min(max)_element(iter,iter)で一番小さい(大きい)値のポインタが帰ってくる
count(iter,iter,int)でintがiterからiterの間にいくつあったかを取得できる
*/
template <typename T>
T gcd(T a,T b){
  if(a%b==0)return b;
  else return gcd(b,a%b);
}
template <typename T>
T lcm(T a,T b){
  return a/gcd(a,b)*b;
}
int dp[200][200];
struct z{
	int a,b,c;
};
__attribute__((constructor))
void initial() {
 cin.tie(0);
 ios::sync_with_stdio(false);
}
int main(){
	int a,b;cin>>a>>b;
	cout << abs(a-b) << endl;
	
}

C++: #include <cstdlib>
#include <iostream>
using namespace std;

int main() {
	int x1, x2;
	cin >> x1 >> x2;
	cout << abs(x1 - x2) << endl;
}

C++: #include <iostream>
using namespace std;
int main(){

int x,y;
cin> x>>y;

if(x>y) cout<<(x-y)<<endl;
else
cout<<(x-b)<< endl;

return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <cmath>
#include <algorithm>
#include <vector>

#define FOR(i, a, b) for (int i = a; i < b; i++)
#define FORN(i, a, b) for (int i = a; i <= b; i++)
#define P(s) cout << s << endl
#define PC(condition, _true, _false) if (condition) _true; else _false;
#define toInt(_char) _char - '0'

using namespace std;
//
// Created by karayuu on 2018-12-18.
//

int main() {
    int a = 0, b = 0;
    cin >> a >> b;

    P(abs(a - b));
}

C++: #include <iostream>
using namespace std;
int main(){

int x1,x2;

 cin>>x1>>x2;

  if(x1 > x2)cout<<x1 - x2<<endl;
     else
   if(x1 < x2)cout<<x2 - x1<<endl;
       else
      cout<<0<<endl;

    




return 0;
}

C++: #include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
int main(void)
{
	int a,b,x;
	cin>>a>>b;
	x=b-a;
	if(x<0) x=x*(-1);
	cout<<x<<endl;
	return 0;
}

C++: #include <bits/stdc++.h>
#include <cctype>
#include <cstring>
using namespace std;

int main(){
	int x, y;
	cin >> x >> y;
	cout << max(x,y) - min(x,y) << endl;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stdio.h>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
using namespace std;
#define Would
#define you


int main() {
	int a, b;
	cin >> a >> b;
	cout << abs(a - b) << endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a;
    int b;
    int c;
    cin>>a;
    cin>>b;
    if(a<b){
        c=b-a;
        cout<<(c)<<endl;
    }else{
        c=a-b;
        cout<<(c)<<endl;
    }
}

C++: #include <iostream>
using namespace std;
int main(void){
    int x1,x2;
    cin >>x1>>x2;
    if(x1<=x2){
        cout <<x2-x1<<endl;
    }
    else{
        cout <<x1-x2<<endl;
    }
}

C++: #include <iostream>
using namespace std;
int main(){

int x,y;
cin> x>>y;

if(x>y) cout<<(x-y)<<endl;
else
cout<<(y-x)<< endl;

return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int x1,x2;
    cin >> x1 >> x2;
        if(x1 < x2)
        {
        cout << x2 - x1 << endl; 
        }else{
        cout << x1 - x2 << endl;
        }
        return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
   int a,b;
   cin>>a>>b;
  if(a>b){
      cout<<a-b<<endl;
  }
  else if(b>a){
      cout<<b-a<<endl;
  }
  else if(a==b){
      cout<<a-b<<endl;
  }
}

C++: #include <iostream>
using namespace std;
int main(){

int x1,x2;

cin >>x1>>x2;

 if (x1<x2)  cout << x2-x1<<endl; 

      else cout << x1-x2<<endl;
        


return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int x, y, z;
    cin >> x >> y;
    z=x-y;
    if(z<0) z=z*(-1);
    cout << z << endl;
    return 0;
}