Submission #201108


Source Code Expand

import java.io.*;
import java.math.*;
import java.util.*;


public class Main {

	public static void main(String[] args) throws Exception {
		new Main().solve();
	}


	void solve() throws Exception {
		FastScanner in = new FastScanner(System.in);

		int a = in.nextInt();
		int b = in.nextInt();

		// double d = Double.parseDouble(in.next());
		// String s1 = in.next();


		System.out.println(b+" "+a);

	}
	class FastScanner {

		private InputStream _stream;
		private byte[] _buf = new byte[1024];
		private int _curChar;
		private int _numChars;
		private StringBuilder _sb = new StringBuilder();

		FastScanner(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 String next() {
			int c = read();
			while (isWhitespace(c)) {
				c = read();
			}
			_sb.setLength(0);
			do {
				_sb.appendCodePoint(c);
				c = read();
			} while (!isWhitespace(c));
			return _sb.toString();
		}

		public int nextInt() {
			return (int) nextLong();
		}
		public long nextLong() {
			int c = read();
			while (isWhitespace(c)) {
				c = read();
			}
			int sgn = 1;
			if (c == '-') {
				sgn = -1;
				c = read();
			}
			long res = 0;
			do {
				if (c < '0' || c > '9') throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isWhitespace(c));
			return res * sgn;
		}

		public boolean isWhitespace(int c) {
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}
	}
}
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

Submission Info

Submission Time
Task A - スワップ
User ixxa
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 1958 Byte
Status AC
Exec Time 397 ms
Memory 20532 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 6
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 396 ms 20528 KB
sample_02.txt AC 397 ms 20468 KB
test_13_69.txt AC 393 ms 20524 KB
test_16_44.txt AC 390 ms 20516 KB
test_40_40.txt AC 393 ms 20524 KB
test_49_31.txt AC 396 ms 20516 KB
test_51_74.txt AC 392 ms 20528 KB
test_83_60.txt AC 389 ms 20532 KB