Go: package main

import (
	"fmt"
	"math"
)

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

C++: #include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int a, b;
    cin >> a >> b;
    cout << abs(a - b) << '\n';
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	cout << max(a, b) - min(a, b) << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for(int i = 0; i < n; i++)
#define all(a) a.begin(), a.end()
#define mod 1000000007
#define MOD 998244353
#define INF 40000000000000000
int dx8[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
int dy8[8] = {1, 1, 1, 0, -1, -1, -1, 0};
int dx4[4] = {-1, 0, 1, 0};
int dy4[4] = {0, -1, 0, 1};
template <class T>
inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return 1;
    }
    return 0;
}
signed main() {
    int a,b;cin>>a>>b;
    cout<<abs(a-b)<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a<b) swap(a,b);
  cout<<a-b<<endl;
  return 0;
}

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

int main(){

    int x1,x2;
    cin >> x1 >> x2;

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

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

int x,y;
cin>>a>>b;
if(a > b) cout<<(a-b)<<endl;
else
cout<<(b-a)<< endl;
return 0;
}

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

int x,y;
cin>>a>>b;
if a > b;
cout<<(a-b)<<;
else cout<<(b-a)<< endl;
return 0;
}

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

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    cout<<abs(a-b)<<endl;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<numeric>
#include<utility>
using namespace std;


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

C++: #include <stdio.h>

int main(void){
    int a, b;
    int ans;
    
    scanf("%d %d", &a, &b);
    
    if(a - b < 0){
        ans = (a-b) * (-1);
    }else{
        ans = a - b;
    }
    
    printf("%d\n", ans);
    
    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()
{
	int x, y;

	cin >> x >> y;

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

	return 0;
}

C++: #include <iostream>
#include <algorithm>

using namespace std;

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

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

int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  if (a < b) printf("%d\n", b - a);
  else printf("%d\n", a - b);
}

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>
#include<algorithm>
using namespace std;

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

C++: #include<bits/stdc++.h>

#define rep(i,n) for (int i =0;i<(n);i++)
#define LL long long 

using namespace std;

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

C++: #include "bits/stdc++.h"
#define in std::cin
#define out std::cout
#define rep(i,N) for(LL i=0;i<N;++i)
typedef long long int LL;

int main()
{
	LL a, b;
	in >> a >> b;
	out << std::abs(a - b) << std::endl;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>

#include <iostream>
#include <complex>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>

#include <functional>
#include <cassert>

typedef long long ll;
using namespace std;

#define debug(x) cerr << __LINE__ << " : " << #x << " = " << (x) << endl;

#define mod 1000000007 //1e9+7(prime number)
#define INF 1000000000 //1e9
#define LLINF 2000000000000000000LL //2e18
#define SIZE 100010


int main(){
  int a, b;

  cin >> a >> b;

  cout << abs(a-b) << endl;
  
  return 0;
}

C++: #include <iostream>
#include <cmath>

using namespace std;


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
cout << x1 – x2 << endl ;

return 0;
}

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


  
int main(){
  

  int a,b;
  cin >> a>> b  ;
  if (a>b){
    cout << a-b << "\n";
  }else  if (b>a){
  cout <<b-a <<"\n"; }
  else {
    cout << "0\n";
  }
  
 return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main() {
int A,B;
cin >> A >> B;
cout << abs(A-B) << endl;
}

C++: #include "bits/stdc++.h"

using namespace std;

int main()
{
    int a,b;
    cin >> a >> b;
    int ans=a>b?(a-b):(b-a);
    cout << ans << endl;
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int (i)=(0);(i)<(int)(n);++(i))
using ll = long long;
using P = pair<int, int>;
using namespace std;

template<class T> void vin(vector<T>& v, int n) {
    v.resize(n);
    for (int i = 0; i < n; ++i) {
        cin >> v[i];
    }
}

int main() {
    int x1, x2;
    cin >> x1 >> x2;

    cout << abs(x1-x2) << 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 <algorithm>
using namespace std;
int main(void){
    
    //変数：１匹目のトンボの頭の位置 「 x1 」と２匹目のトンボの頭の位置 「 x2 」と置く

    int x1, x2;
   
    //入力：１匹目のトンボの頭の位置 「 x1 」と２匹目のトンボの頭の位置 「 x2 」を入力
    cin >> x1 >> x2;
    
    //出力：両トンボ間の距離は必ず正の数だから絶対値を使用 ➡  abs(式  or  変数)
    cout << abs(x1 - x2) << endl;
    
    return 0;
}

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

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