2 solutions

  • 0
    @ 2025-7-28 14:11:26

    #include<bits/stdc++.h> using namespace std; int main() { int A,a,b,c,d,e; cin>>a>>b; if(a>=b) { cout<<0; } else { A=b-a; d=A/10; c=A%10; if(c>0) { d=d+1; } cout<<d; } return 0; }

    • 0
      @ 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;
      }
      
      • 1

      Information

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