Submission #201165
Source Code Expand
import java.util.Arrays; import java.util.Scanner; public class Main { MyScanner sc = new MyScanner(); Scanner sc2 = new Scanner(System.in); void run() { int i = sc.nextInt(); int y = sc.nextInt(); System.out.println(y + " " + i); } public static void main(String[] args) { new Main().run(); } void debug(Object... o) { System.out.println(Arrays.deepToString(o)); } void debug2(int[][] array) { for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[i].length; j++) { System.out.print(array[i][j]); } System.out.println(); } } class MyScanner { int nextInt() { try { int c = System.in.read(); while (c != '-' && (c < '0' || '9' < c)) c = System.in.read(); if (c == '-') return -nextInt(); int res = 0; do { res *= 10; res += c - '0'; c = System.in.read(); } while ('0' <= c && c <= '9'); return res; } catch (Exception e) { return -1; } } double nextDouble() { return Double.parseDouble(next()); } String next() { try { StringBuilder res = new StringBuilder(""); int c = System.in.read(); while (Character.isWhitespace(c)) c = System.in.read(); do { res.append((char) c); } while (!Character.isWhitespace(c = System.in.read())); return res.toString(); } catch (Exception e) { return null; } } } }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | suigingin |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 1454 Byte |
Status | AC |
Exec Time | 565 ms |
Memory | 23220 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 501 ms | 23076 KB |
sample_02.txt | AC | 504 ms | 23220 KB |
test_13_69.txt | AC | 498 ms | 23088 KB |
test_16_44.txt | AC | 508 ms | 23088 KB |
test_40_40.txt | AC | 565 ms | 23092 KB |
test_49_31.txt | AC | 484 ms | 23092 KB |
test_51_74.txt | AC | 545 ms | 23088 KB |
test_83_60.txt | AC | 502 ms | 23212 KB |