Unrated me agr solution same hue to khi ban pd gya to??
Читать полностью…How can E second test case 5
Читать полностью…Share your solutions
Читать полностью…ABCDEF any exchange of G1 G3
Читать полностью…bhai. DIV 4 jesa lag hi nhi rha
Читать полностью…Khatam interest.
Chalo Ghar sab
contest is now unrated for all
Читать полностью…I have ABCDEF for exchange for G1
Читать полностью…#include<bits/stdc++.h>
using namespace std;
#define int long long
int32_t main()
{
int t;
cin>>t;
while(t--)
{
int x,y,k;
cin>>x>>y>>k;
int some;
int full;
if(x%k==0)
{
some=x/k;
}
else
{
some=(x/k)+1;
}
if(y%k==0)
{
full=y/k;
}
else
{
full=(y/k)+1;
}
// cout<<some<<" "<<full<<endl;
int mini=min(some,full);
int maxi=max(some,full);
int ans=mini+maxi+(maxi-mini);
if(some>full)
{
ans--;
}
cout<<ans<<endl;
}
return 0;
}
int main() {
int t;
cin >> t;
while (t--) {
ll x, y, k;
cin >> x >> y >> k;
ll moves = 0 ;
ll cx = 0 , cy = 0 ;
while (cx < x || cy < y) {
if (moves % 2 == 0) {
cx += std::min(k, x - cx);
} else {
cy += std::min(k, y - cy);
}
moves++;
}
cout<<moves<<"\n";
}
return 0;
}
C
Last case both are equal
Читать полностью…what should we do for last Testcase
Читать полностью…if anyone needs f, dm me
Читать полностью…Last testcase fail ho rha hai
Читать полностью…ha bhai glt to kiya hai
Читать полностью…Guys profile page bhi open nhi ho rha hai
Читать полностью…English nahi maalum 🤣
Читать полностью…Contest itself unrated
Читать полностью…🔥🔥😂🔥😂🔥😂🔥🔥😂🔥😂🔥🔥😂🔥😂😂
Читать полностью…That div 4 is unrated??
Читать полностью…Due to the poor performance of the main site for a long period, Codeforces Round 971 (Div. 4) will be unrated. We apologize for the inconvenience.
Читать полностью…Is cf working fine for u guys?
Читать полностью…Why you send this code again???????????
Читать полностью…No it won’t we have 2 sec
Читать полностью…if (jj_x == jj_y &&(x % k == 0 || y % k == 0)) { count11--; }
cout << count11 <<"\n";
I think if both are equal than we will do max of both moves -1
Читать полностью…bio wala bnda kha gya bhai
Читать полностью…Hmm c ka edge case kya h??
Читать полностью…C mae edge case samajh nhi aa rha
Читать полностью…kuch to galat kia hai bhai
Читать полностью…