結果
問題 | No.423 ハムスター語初級(数詞) |
ユーザー | Grenache |
提出日時 | 2016-09-22 22:27:26 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 125 ms / 2,000 ms |
コード長 | 590 bytes |
コンパイル時間 | 3,269 ms |
コンパイル使用メモリ | 76,440 KB |
実行使用メモリ | 41,136 KB |
最終ジャッジ日時 | 2024-11-17 13:36:27 |
合計ジャッジ時間 | 5,041 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
import java.io.*; import java.util.*; public class Main_yukicoder423 { private static Scanner sc; private static Printer pr; private static void solve() { String s = sc.next(); if (s.equals("ham")) { pr.println("ham"); } else { pr.println(s + "ham"); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }