Help me in solving LBC17 problem

My issue

My code

// Update the code below to solve this problem

#include <iostream>
#include <string>
using namespace std;

int main() 
{
  int t;
  cin>>t; 
  while(t--)
  {
  int X, Y;
  cin>>X>>Y;
  
   }
return 0;
}

Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone

@ujwalgulhane31
// Update the code below to solve this problem

include <bits/stdc++.h>
using namespace std;

int main()
{
int t;
cin>>t;
while(t–)
{
int x, y;
cin>>x>>y;
x=ceil(x1.0/101.0);
y=ceil(y1.0/101.0);
cout<<abs(x-y)<<endl;
}
return 0;
}
This is the whole code of your problem u just need to find the ceiling value of both x and y and then print their absolute difference.

Thank you so much @dpcoder_007 bro

1 Like