結果

問題 No.725 木は明らかに森である
ユーザー 37zigen37zigen
提出日時 2018-08-24 21:26:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 2,249 ms
コンパイル使用メモリ 71,944 KB
実行使用メモリ 56,504 KB
最終ジャッジ日時 2023-09-05 10:57:30
合計ジャッジ時間 4,003 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,268 KB
testcase_01 AC 119 ms
56,064 KB
testcase_02 AC 118 ms
55,752 KB
testcase_03 AC 120 ms
56,504 KB
testcase_04 AC 118 ms
56,136 KB
testcase_05 AC 119 ms
55,784 KB
testcase_06 AC 119 ms
55,776 KB
testcase_07 AC 119 ms
55,680 KB
testcase_08 AC 120 ms
56,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().run();
	}

	void run() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next().replaceAll("treeone", "forest");
		System.out.println(S);
	}

	void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
}
0