MeetCode
Home
Doubts
Why is my C function not returning the …
Solved
1
49
Ask Doubt
View All Doubts
Solvers Leaderboard
Tutorials
Quiz
All Tests
Leaderboard
My Tasks
User Login
Dark
Enable Notifications
Toggle navigation
Are Coprime
Computer Mathematics
Easy
2 views
Back to Questions
View Answer
0
Previous
LCM Of Array Small
Hard
P
Next
Simplify Fraction
Medium
N
Problem Description
Print YES if gcd(a,b)=1.
Input Format
Two integers a b.
Output Format
YES or NO.
Sample Test Case
Input:
14 25
Output:
YES
Constraints
|a|,|b|
Official Solution
Compute gcd. If gcd==1 then YES else NO.
Please
login
to submit solutions and comments.
Solutions (0)
No solutions submitted yet. Be the first!
Discussion (0)
No comments yet. Start the discussion!
Prev
Next
Fullscreen Editor
0 lines • 0 chars
Esc close • Tab indent
No comments yet. Start the discussion!