git reimport
This commit is contained in:
33
archive/2018.10/2018.10.29 - SNCK1B19/SNCKYEAR.java
Normal file
33
archive/2018.10/2018.10.29 - SNCK1B19/SNCKYEAR.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package chelper;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
|
||||
|
||||
public class SNCKYEAR extends SimpleSavingChelperSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
Set<Integer> set = new HashSet<>();
|
||||
|
||||
set.add(2010);
|
||||
set.add(2015);
|
||||
set.add(2016);
|
||||
set.add(2017);
|
||||
set.add(2019);
|
||||
|
||||
if (set.contains(in.nextInt())) {
|
||||
out.println("HOSTED");
|
||||
} else {
|
||||
out.println("NOT HOSTED");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user