Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Need help in a simple problem

Revision en2, by bad_deyS, 2020-09-16 04:37:48

Given 4 numbers A,B,C and D. If A ^ B > C ^ D print "YES" otherwise, print "NO".

Input : Only one line containing 4 numbers A,B,C and D (1 ≤ A,C ≤ 10^7 ) , (1 ≤ B,D ≤ 10^12 )

Output : Print "YES" or "NO" according to the problem above.

Problem Link — Here

I think I have to mod this. But what's the real approach?

TIA.

Tags #modular arithmetic

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English bad_deyS 2020-09-16 04:37:48 4
en1 English bad_deyS 2020-09-16 04:37:23 438 Initial revision (published)