程序代写代做代考 // a useful function

// a useful function
function intersection ( setA, setBb ) { return new Set( […setA].filter( x => setB.has(x) ) ) };
class Olympics {
constructor () {
this.allMyPossiblePlayers = []
this.allMyQualifiedPlayers = []
this.allQualifiedCountries = []
this.allCountryPlaces = new Map()
this.allQualifiedCountriesSet = new Set()
// AND some useful sets of country codes arranged by continent
this.Africa = new Set( [ “ALG”, “ANG”, “BEN”, “BOT”, “BUR”, “BDI”, “CPV”, “CMR”, “CAF”, “CHA”,
“COM”, “COD”, “CGO”, “CIV”, “DJI”, “EGY”, “GEQ”, “ERI”, “ETH”, “GAB”,
“GAM”, “GHA”, “GUI”, “GBS”, “KEN”, “LES”, “LBR”, “LBA”, “MAD”, “MAW”,
“MLI”, “MTN”, “MRI”, “MAR”, “MOZ”, “NAM”, “NIG”, “NGR”, “RWA”, “STP”,
“SEN”, “SEY”, “SLE”, “SOM”, “RSA”, “SSD”, “SUD”, “SWZ”, “TAN”, “TOG”,
“TUN”, “UGA”, “ZAM”, “ZIM” ] )
this.Asia = new Set( [ “AFG”, “ARM”, “AZE”, “BRN”, “BAN”, “BHU”, “BRU”, “CAM”, “CHN”, “CYP”,
“GEO”, “IND”, “INA”, “IRI”, “IRQ”, “ISR”, “JPN”, “JOR”, “KAZ”, “KUW”,
“KGZ”, “LAO”, “LIB”, “MAS”, “MDV”, “MGL”, “MYA”, “NEP”, “PRK”, “OMA”,
“PAK”, “PLE”, “PHI”, “QAT”, “RUS”, “KSA”, “SGP”, “KOR”, “SRI”, “SYR”,
“TPE”, “TJK”, “THA”, “TLS”, “TUR”, “TKM”, “UAE”, “UZB”, “VIE”, “YEM” ] )

this.Europe = new Set( [ “ALB”, “AND”, “ARM”, “AUT”, “AZE”, “BLR”, “BEL”, “BIH”, “BUL”, “CRO”,
“CYP”, “CZE”, “DEN”, “EST”, “FIN”, “FRA”, “GEO”, “GER”, “GRE”, “HUN”,
“ISL”, “IRL”, “ITA”, “KAZ”, “KOS”, “LAT”, “LIE”, “LTU”, “LUX”, “MKD”,
“MLT”, “MDA”, “MON”, “MNE”, “NED”, “NOR”, “POL”, “POR”, “ROU”, “RUS”,
“SMR”, “SRB”, “SVK”, “SLO”, “ESP”, “SWE”, “SUI”, “TUR”, “UKR” ] )
this.NorthAmerica = new Set( [ “ANT”, “BAH”, “BAR”, “BIZ”, “CAN”, “CRC”, “CUB”, “DMA”, “DOM”,
“ESA”, “GRN”, “GUA”, “HAI”, “HON”, “JAM”, “MEX”, “NCA”, “PAN”,
“SKN”, “LCA”, “VIN”, “TTO”, “USA” ] )
this.SouthAmerica = new Set( [ “ARG”, “BOL”, “BRA”, “CHI”, “COL”, “ECU”, “GUY”, “PAR”, “PER”,
“SUR”, “URU”, “VEN” ] )
this.America = new Set( [ “ANT”, “BAH”, “BAR”, “BIZ”, “CAN”, “CRC”, “CUB”, “DMA”, “DOM”,
“ESA”, “GRN”, “GUA”, “HAI”, “HON”, “JAM”, “MEX”, “NCA”, “PAN”,
“SKN”, “LCA”, “VIN”, “TTO”, “USA”, “ARG”, “BOL”, “BRA”, “CHI”,
“COL”, “ECU”, “GUY”, “PAR”, “PER”, “SUR”, “URU”, “VEN” ] )
this.Oceania = new Set ( [ “AUS”, “FIJ”, “KIR”, “MHL”, “FSM”, “NRU”, “NZL”, “PLW”, “PNG”,
“SAM”, “SOL”, “TGA”, “TUV”, “VAN” ] )
this.Antarctia = new Set () // opps not useful – no penguins played golf in the 2016 Olympics 