#include <iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
int t = abs(m - n);
int x = 0;
while (true)
{
if (t == 0)
{
cout << x << endl;
break;
}
x += 1;
if (t >= 8)
{
t = abs(t - 10);
}
else if (t > 3)
{
t = abs(t - 5);
}
else
{
t = abs(t - 1);
}
}
}
洛谷 [ARC001B] リモコン 高桥君要调整空调的设定温度
最新推荐文章于 2024-09-12 13:19:42 发布