Submission #7469870
Source Code Expand
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); OutputWriter out = new OutputWriter(outputStream); A solver = new A(); solver.solve(1, in, out); out.close(); } static class A { public void solve(int testNumber, InputReader in, OutputWriter out) { int x = in.readInt(); int y = in.readInt(); out.printLine(Math.max(x, y)); } } static class OutputWriter { private final PrintWriter writer; public OutputWriter(OutputStream outputStream) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream))); } public OutputWriter(Writer writer) { this.writer = new PrintWriter(writer); } public void close() { writer.close(); } public void printLine(int i) { writer.println(i); } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) { throw new InputMismatchException(); } if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) { return -1; } } return buf[curChar++]; } public int readInt() { int c = read(); while (isSpaceChar(c)) { c = read(); } int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') { throw new InputMismatchException(); } res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) { return filter.isSpaceChar(c); } return isWhitespace(c); } public static boolean isWhitespace(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | amotoma3 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 3491 Byte |
Status | AC |
Exec Time | 72 ms |
Memory | 22484 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, kensho_diff01, kensho_diff02, kensho_diff03, kensho_diff04, kensho_diff05, kensho_min-max01, kensho_min-max02, kensho_min-max03, kensho_min-max04, kensho_min-max05, kensho_min-max06, kensho_min-max07, kensho_min-max08, kensho_min-max09, kensho_min-max10, kensho_rand01, kensho_rand02, kensho_rand03, kensho_rand04, kensho_rand05, kensho_rand06, kensho_rand07, kensho_rand08, kensho_rand09, kensho_rand10 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 69 ms | 21332 KB |
00_sample_02.txt | AC | 69 ms | 21332 KB |
kensho_diff01 | AC | 70 ms | 19924 KB |
kensho_diff02 | AC | 70 ms | 21332 KB |
kensho_diff03 | AC | 70 ms | 21332 KB |
kensho_diff04 | AC | 72 ms | 21076 KB |
kensho_diff05 | AC | 71 ms | 18772 KB |
kensho_min-max01 | AC | 70 ms | 19540 KB |
kensho_min-max02 | AC | 70 ms | 22484 KB |
kensho_min-max03 | AC | 69 ms | 21460 KB |
kensho_min-max04 | AC | 69 ms | 18004 KB |
kensho_min-max05 | AC | 71 ms | 19540 KB |
kensho_min-max06 | AC | 70 ms | 20436 KB |
kensho_min-max07 | AC | 72 ms | 19412 KB |
kensho_min-max08 | AC | 69 ms | 17620 KB |
kensho_min-max09 | AC | 71 ms | 22228 KB |
kensho_min-max10 | AC | 71 ms | 19284 KB |
kensho_rand01 | AC | 70 ms | 19284 KB |
kensho_rand02 | AC | 70 ms | 19156 KB |
kensho_rand03 | AC | 70 ms | 19412 KB |
kensho_rand04 | AC | 71 ms | 19028 KB |
kensho_rand05 | AC | 69 ms | 18132 KB |
kensho_rand06 | AC | 71 ms | 19924 KB |
kensho_rand07 | AC | 72 ms | 20820 KB |
kensho_rand08 | AC | 72 ms | 19284 KB |
kensho_rand09 | AC | 71 ms | 18516 KB |
kensho_rand10 | AC | 69 ms | 15956 KB |