Professional Documents
Culture Documents
h>
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define fi first
#define se second
ll powermod(ll a, ll b)
{
ll ans = 1;
while (b)
{
if (b & 1) ans = (ans * a) % MOD;
b = b / 2;
a = (a * a) % MOD;
}
return ans;
}
ll gcd(ll a, ll b)
{
if (b == 0) return a;
return gcd(b, a % b);
}
ll lcm(ll a, ll b)
{
return (a / gcd(a, b)) * b;
}
void go(ll a, ll b, ll c)
{
ll tm = ((why * (b - a)) % mod + mod) % mod;
ll chk = tm * 708;
if((b - c + chk) % mod == 0)
{
ll nano = tm % (ll)1e9;
tm /= 1e9;
ll sec = tm % 60;
tm /= 60;
ll min = tm % 60;
ll hr = tm / 60;
cout<<hr<<" "<<min<<" "<<sec<<" "<<nano<<endl;
done = true;
}
}
void krdiyasuru()
{
ons();
ciii(a, b, c);
go(a, b, c);
if(done == true)
{
return;
}
go(a, c, b);
if(done == true)
{
return;
}
go(b, a, c);
if(done == true)
{
return;
}
go(b, c, a);
if(done == true)
{
return;
}
go(c, a, b);
if(done == true)
{
return;
}
go(c, b, a);
if(done == true)
{
return;
}
return;
}
int main()
{
yehbhitheekhai;
// solve();
krosuru
{
done = false;
krdiyasuru();
}
}