結果

問題 No.423 ハムスター語初級(数詞)
ユーザー GrenacheGrenache
提出日時 2016-09-22 22:27:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 590 bytes
コンパイル時間 3,301 ms
コンパイル使用メモリ 74,852 KB
実行使用メモリ 56,220 KB
最終ジャッジ日時 2023-08-11 01:35:45
合計ジャッジ時間 5,314 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,164 KB
testcase_01 AC 123 ms
55,904 KB
testcase_02 AC 123 ms
54,184 KB
testcase_03 AC 122 ms
55,880 KB
testcase_04 AC 124 ms
55,488 KB
testcase_05 AC 118 ms
55,620 KB
testcase_06 AC 123 ms
55,912 KB
testcase_07 AC 124 ms
55,628 KB
testcase_08 AC 122 ms
56,220 KB
testcase_09 AC 119 ms
56,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


public class Main_yukicoder423 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		String s = sc.next();

		if (s.equals("ham")) {
			pr.println("ham");
		} else {
			pr.println(s + "ham");
		}
	}

	// ---------------------------------------------------
	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