BYTR20B- AGCY help

My solution: Error Page | CodeChef
Problem:- Contest Page | CodeChef

My solution gives TLE, can someone provide an efficient approach for this problem. It will be a great help!

what is diff. in these 2 codes for bytrace prob CYBV
one is giving WA and secondis AC
FIRST CODE
https://www.codechef.com/viewsolution/40943503
SECOND CODE
https://www.codechef.com/viewsolution/40943572

if both same then why WA

How do I report plagiarism in this contest. there a few submissions with the same code. These people have used the same code in the December lunch-Time as well.
the submissions are :
solution 1
solution 2
solution 3
solution 4
solution 5
solution 6

UPD: Have added links to the solutions

i also got tle

can u please answer my query

@testingode07
if(n==k)
cout<<x<<endl;
x=1 not x=0

and one more thing put bracket when u r writing more than one statement

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
const ll mod = 1000000007;
int main() {
ll t;
cin>>t;
while (t–)
{ ll n,k,x=0;
cin>>n>>k;
if (n>k)
cout<<x<<endl;
else
{
x=floor(k/n);
cout<<x<<endl;
}
}
return 0;
}

I was randomly checking AC slutions to problem 4 after the contest, and first two I opened had the “exact” same code. Just comments were removed in one.
Submission 1
Submission 2

1 Like

then what about this
https://www.codechef.com/viewsolution/40929105

Because in first code: x=0 will be printed if n=k, but the correct answer should be 1

no i am asking about
https://www.codechef.com/viewsolution/40929105
and correct one

what is the diff. between these two
one WA and one AC
https://www.codechef.com/viewsolution/40929105
https://www.codechef.com/viewsolution/40943572