Skip to content

Commit

Permalink
Added new ques in self learning
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranSiddhu committed Mar 5, 2022
1 parent 697ba5a commit aff7790
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,24 @@ using namespace std;
#define ld long double
#define el "\n"

//NOTE This is a very simple template for beginners

void solution(){
cout << "Your Code Here";
int n, k;
cin >> n >> k;

int ans = n/__gcd(n,k);

cout << ans << el;
}

int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);


int t;
cin >> t;
while(t--)
while (t--)
solution();

return 0;
Expand Down

0 comments on commit aff7790

Please sign in to comment.