結果

問題 No.725 木は明らかに森である
ユーザー katsuyadaisukokatsuyadaisuko
提出日時 2018-09-04 01:45:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 2,377 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 41,784 KB
最終ジャッジ日時 2024-04-18 17:55:28
合計ジャッジ時間 3,907 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,784 KB
testcase_01 AC 122 ms
41,444 KB
testcase_02 AC 118 ms
41,316 KB
testcase_03 AC 124 ms
41,168 KB
testcase_04 AC 125 ms
41,264 KB
testcase_05 AC 124 ms
41,236 KB
testcase_06 AC 125 ms
41,316 KB
testcase_07 AC 123 ms
41,580 KB
testcase_08 AC 107 ms
41,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		String b = a;
		if (a.contains("treeone")) {
			b = a.replace("treeone", "forest");
		}
		System.out.println(b);
	}
}
0