2 solutions

  • 1
    @ 2025-7-23 11:50:07
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int x,y,a;
    	cin>>x>>y;
    	if(x>=y) cout<<'0';
    	else
    	{
    		a=y-x;
    		if(a%10==0) cout<<a/10;
    		else cout<<a/10+1;
    	}
    	return 0;
    }
    

    Information

    ID
    2318
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    164
    Accepted
    52
    Uploaded By