4 views
25 Jan 2026
Compute gcd(a,b)....
3 views
25 Jan 2026
Compute lcm(a,b)....
4 views
25 Jan 2026
Given n and n integers, print gcd of all numbers....
2 views
25 Jan 2026
Given n...
3 views
25 Jan 2026
Print YES if gcd(a,b)=1....
2 views
25 Jan 2026
Given a/b, reduce it to lowest terms and keep sign in numerator....
3 views
25 Jan 2026
Given n numbers, print gcd of all |ai-a1|....
3 views
25 Jan 2026
Find x,y such that ax+by=gcd(a,b). Print gcd x y....
2 views
25 Jan 2026
Given a and m, print inverse of a mod m, or -1 if not exists....
2 views
25 Jan 2026
Given two numbers ...
3 views
25 Jan 2026
Given array and q queries [l,r], output gcd of all except between l..r....
3 views
25 Jan 2026
Given a and b, print YES if lcm(a,b)=a*b (no overlap factors)....
2 views
25 Jan 2026
Given n...