Skip to content

Videl/hackerrank-problemset-between-two-sets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackerrank-problemset-between-two-sets

Between Two Sets

Short description

Hacker Rank Problem Set "Between Two Sets"

Extract from problem:

Consider two sets of positive integers, A and B. We say that a positive integer, x, is between sets A and B if the following conditions are satisfied:

  1. All elements in A are factors of x.
  2. x is a factor of all elements in B.

Given A and B, find and print the number of integers (i.e., possible x's) that are between the two sets.

(Please check on HackerRank for full question)

Launch

g++.exe -Wall main.cpp -o main && less data.in | main

About

Between Two Sets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages