結果

問題 No.423 ハムスター語初級(数詞)
ユーザー ほげ太郎ほげ太郎
提出日時 2018-02-26 14:41:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 2,306 ms
コンパイル使用メモリ 73,876 KB
実行使用メモリ 56,140 KB
最終ジャッジ日時 2023-08-15 10:43:24
合計ジャッジ時間 4,283 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,464 KB
testcase_01 AC 126 ms
55,408 KB
testcase_02 AC 125 ms
56,140 KB
testcase_03 AC 126 ms
55,628 KB
testcase_04 AC 125 ms
55,364 KB
testcase_05 AC 120 ms
55,472 KB
testcase_06 AC 126 ms
55,524 KB
testcase_07 AC 128 ms
55,648 KB
testcase_08 AC 127 ms
55,596 KB
testcase_09 AC 127 ms
55,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] p) {
        Scanner q = new Scanner(System.in);
        String str = q.next();
        System.out.println(str.length() == 3 ? str : str + "ham");
    }
}
0