結果

問題 No.423 ハムスター語初級(数詞)
ユーザー NASU41NASU41
提出日時 2016-12-23 23:33:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 2,167 ms
コンパイル使用メモリ 72,620 KB
実行使用メモリ 56,124 KB
最終ジャッジ日時 2023-08-21 07:41:48
合計ジャッジ時間 4,254 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,716 KB
testcase_01 AC 130 ms
55,424 KB
testcase_02 AC 131 ms
55,728 KB
testcase_03 AC 131 ms
53,696 KB
testcase_04 AC 129 ms
55,952 KB
testcase_05 AC 123 ms
55,580 KB
testcase_06 AC 128 ms
55,788 KB
testcase_07 AC 127 ms
55,668 KB
testcase_08 AC 126 ms
56,124 KB
testcase_09 AC 127 ms
55,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String number = sc.nextLine();
        if(number.equals("ham")) System.out.println("ham");
        else System.out.println(number + "ham");        
    }
}
0