J
@jasonljy90
Lottery Cleanup
import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
// Set lowLimit and highLimit
Long lowLimit = 1L;
Long highLimit = 15L;
Lottery Direct Map No List
import java.util.*;
public class Main {
public static void main(String[] args) {
Long lowLimit = 3L;
Long highLimit = 12L;
// Create a list to store the result i.e total number of ways to choose sum so that max possible participants win the lottery, number of participants who will win the lottery
List<Long> finalResult = new ArrayList<>();
Erica Bob
/*
* Erica and Bob participate in a friendly Hackathon that allows each one to solve one question a day out of the three offered. There will be one easy, one medium and one hard question, with points awarded based on difficulty. The winner is the one with the highest score at the end of the competition based on the following scale:
Scoring table
Difficulty point
Easy (E) 1
Medium (M) 3
Lottery
import java.util.*;
public class Main {
public static void main(String[] args) {
Long lowLimit = 200L;
Long highLimit = 210L;
// Create a list to store the result i.e total number of ways to choose sum so that max possible participants win the lottery, number of participants who will win the lottery
List<Long> finalResult = new ArrayList<>();
LotteryNoPrint
import java.util.*;
public class Main {
public static void main(String[] args) {
List<Long> result = waysToChooseSum(200L, 210L);
System.out.println(result);
}
public static List<Long> waysToChooseSum(long lowLimit, long highLimit) {