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; }

    Information

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