C++11 9*AC,1*TLE Help!
查看原帖
C++11 9*AC,1*TLE Help!
977778
__Harry_Haiyun__楼主2023/9/5 12:47
#include <bits/stdc++.h>
#define int long long
#define iostream() ios::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL);
using namespace std;
const int maxn = 1e6+7;
const int MAXN = maxn / 2;
signed main()
{
    iostream();
    int a,b; //,cnt = 0;
    cin >> a >> b;
    /*while (a > b)
    {
    	a += 100;
    	cnt++;
	}*/
	for (int i = 0;; i++)
	{
		if (b + 100 * i >= a)
		{
			cout << i;
			return 0;
		}
	}
	//cout << cnt;
 	return 0;
}
2023/9/5 12:47
加载中...