結果

問題 No.725 木は明らかに森である
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-02-19 18:03:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 2,260 ms
コンパイル使用メモリ 71,732 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-08-02 16:44:38
合計ジャッジ時間 4,176 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
54,180 KB
testcase_01 AC 122 ms
55,676 KB
testcase_02 AC 120 ms
55,412 KB
testcase_03 AC 124 ms
55,952 KB
testcase_04 AC 122 ms
55,828 KB
testcase_05 AC 121 ms
56,008 KB
testcase_06 AC 122 ms
55,692 KB
testcase_07 AC 122 ms
56,076 KB
testcase_08 AC 121 ms
55,528 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