git reimport
This commit is contained in:
25
archive/2018.10/2018.10.15 - SNCKQL19/HS08TEST.java
Normal file
25
archive/2018.10/2018.10.15 - SNCKQL19/HS08TEST.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package chelper;
|
||||
|
||||
import io.InputReader;
|
||||
import io.OutputWriter;
|
||||
import misc.SimpleSavingChelperSolution;
|
||||
|
||||
|
||||
public class HS08TEST extends SimpleSavingChelperSolution {
|
||||
|
||||
public void solve(int testNumber, InputReader in, OutputWriter out) {
|
||||
wrapSolve(testNumber, in, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void solve(int testNumber) {
|
||||
int x = in.nextInt();
|
||||
double y = in.nextDouble();
|
||||
|
||||
if (x + 0.5 > y || x % 5 != 0) {
|
||||
out.println(y);
|
||||
} else {
|
||||
out.println(y - x - 0.5);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user