3 solutions

  • 0
    @ 2025-4-12 10:14:44
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,b,c;
    	cin>>a>>b;
    	
    	if(b>a)
    	{
    		c=b-a; 
    		c=b/10;
    	}
    	if(b%10>0)
    	{
    		c+=1;
    	}
    	cout<<c;
    
    	return 0;
    }
    

    Information

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