結果

問題 No.725 木は明らかに森である
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-02-19 18:03:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 2,130 ms
コンパイル使用メモリ 74,468 KB
実行使用メモリ 41,436 KB
最終ジャッジ日時 2024-04-20 16:51:14
合計ジャッジ時間 4,116 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,324 KB
testcase_01 AC 106 ms
40,132 KB
testcase_02 AC 118 ms
41,392 KB
testcase_03 AC 109 ms
40,620 KB
testcase_04 AC 118 ms
41,260 KB
testcase_05 AC 118 ms
41,436 KB
testcase_06 AC 105 ms
40,340 KB
testcase_07 AC 108 ms
40,152 KB
testcase_08 AC 117 ms
41,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String before = "treeone";
        String after = "forest";
        System.out.println(s.replace(before,after));
    }
}
0