Please read the new rule regarding the restriction on the use of AI tools. ×

1 line soln for Today Div 2 C

Revision en3, by Swayam78, 2024-09-29 22:48:24

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

283646208

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
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)