結果

問題 No.543 命題
ユーザー GrenacheGrenache
提出日時 2017-07-14 22:25:49
言語 Java19
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 590 bytes
コンパイル時間 5,764 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 39,824 KB
最終ジャッジ日時 2023-07-29 14:24:25
合計ジャッジ時間 5,435 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
39,260 KB
testcase_01 AC 122 ms
39,824 KB
testcase_02 AC 121 ms
39,232 KB
testcase_03 AC 121 ms
39,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


public class Main_yukicoder543 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		char[] a = sc.next().toCharArray();
		char[] b = sc.next().toCharArray();

		pr.printf("%c %c\n", b[0], a[0]);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0