1 line soln for Today Div 2 C

Revision en1, by Swayam78, 2024-09-29 22:36:28

Here , u just have to a = c^d , if then check if it do satisy the condition or not , if it doesn't then cout -1 , else a. I would appreciate if you can add proof for same.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Swayam78 2024-09-30 10:39:15 625
en3 English Swayam78 2024-09-29 22:48:24 16
en2 English Swayam78 2024-09-29 22:45:52 30 Tiny change: ' for same.' -> ' for same.\n\n\n\n[submission:283646208]'
en1 English Swayam78 2024-09-29 22:36:28 200 Initial revision (published)