saptarshikuar2003's blog

By saptarshikuar2003, history, 32 hours ago, In English

problem link:- https://codeforces.net/problemset/problem/1881/D

here we have to choose two element in the array let ai,aj and choose a divisor of ai let x and replace ai=ai/x ans aj=aj*x;

after some operation we have to make all the element equal in that array

now let consider an array of two elements a1,a2 now let ai=a1 and aj=a2 x the divisor a1

==>let say a1=a1/x and a2=a2*x; ==>now a1/x=a2*x now multiply these two we get (a1/x)*(a2*x)=a1*a2;

we can generalise after all the operation when we multiply all the elements we get a1*a2*a3*a4...... so we can generalise if the nth root of a1*a2*a3....*an is a whole number then return yes otherwise return no; I don't no how to implement this idea..... also please clarify that the idea is right or wrong.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By saptarshikuar2003, history, 13 days ago, In English

hello, I got stuck in this problem can any one help me in figuring out what is the mistake. submission link:- https://codeforces.net/contest/1790/submission/296512970

Full text and comments »

By saptarshikuar2003, history, 3 weeks ago, In English

can anyone help me in figuring out the problem I am not getting the editorial and how it is working. please some one explain me. the problem link:- https://codeforces.net/problemset/problem/1979/C

Full text and comments »