結果

問題 No.423 ハムスター語初級(数詞)
ユーザー hermione17hermione17
提出日時 2016-09-22 22:23:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 3,626 ms
コンパイル使用メモリ 74,980 KB
実行使用メモリ 58,056 KB
最終ジャッジ日時 2023-08-11 01:31:33
合計ジャッジ時間 5,574 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,332 KB
testcase_01 AC 118 ms
58,056 KB
testcase_02 AC 119 ms
55,888 KB
testcase_03 AC 120 ms
55,976 KB
testcase_04 AC 119 ms
55,944 KB
testcase_05 AC 115 ms
55,472 KB
testcase_06 AC 119 ms
55,876 KB
testcase_07 AC 120 ms
56,020 KB
testcase_08 AC 119 ms
56,552 KB
testcase_09 AC 119 ms
56,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintStream;
import java.util.Scanner;


public class Y423 {
	Y423() throws Exception {
		Scanner in = new Scanner(System.in);
		PrintStream out = new PrintStream(System.out);
		
		String s = in.next();
		if ("ham".equals(s)) {
			out.println("ham");
		} else {
			out.println(s + "ham");
		}

	}

	public static void main(String argv[]) throws Exception {
		new Y423();
	}
}
0