結果

問題 No.423 ハムスター語初級(数詞)
ユーザー jimanojimano
提出日時 2018-02-06 23:08:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 478 bytes
コンパイル時間 4,631 ms
コンパイル使用メモリ 77,156 KB
実行使用メモリ 49,740 KB
最終ジャッジ日時 2023-09-26 15:26:29
合計ジャッジ時間 5,821 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
49,544 KB
testcase_01 AC 52 ms
49,564 KB
testcase_02 AC 51 ms
49,676 KB
testcase_03 AC 51 ms
49,636 KB
testcase_04 AC 51 ms
49,548 KB
testcase_05 AC 41 ms
49,516 KB
testcase_06 AC 50 ms
49,696 KB
testcase_07 AC 52 ms
49,444 KB
testcase_08 AC 50 ms
49,704 KB
testcase_09 AC 52 ms
49,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1_5;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0423 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String input = br.readLine();
			
			System.out.println(input.equals("ham") ? input : input + "ham");// 二進数の二倍;// 二進数の二倍
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0