結果

問題 No.423 ハムスター語初級(数詞)
ユーザー キョウチクキョウチク
提出日時 2022-05-16 10:44:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 3,426 ms
コンパイル使用メモリ 72,372 KB
実行使用メモリ 57,644 KB
最終ジャッジ日時 2023-10-12 02:54:20
合計ジャッジ時間 5,457 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,852 KB
testcase_01 AC 128 ms
55,620 KB
testcase_02 AC 128 ms
55,944 KB
testcase_03 AC 126 ms
55,436 KB
testcase_04 AC 124 ms
55,684 KB
testcase_05 AC 120 ms
56,080 KB
testcase_06 AC 123 ms
56,036 KB
testcase_07 AC 125 ms
55,536 KB
testcase_08 AC 124 ms
55,492 KB
testcase_09 AC 131 ms
57,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Test10 {
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String line;
    line=sc.nextLine();
    if(!line.equals("ham")) line+="ham";
    System.out.println(line);
    sc.close();
  }
}
0