結果
問題 | No.725 木は明らかに森である |
ユーザー | fabled2468 |
提出日時 | 2018-09-24 15:36:15 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 581 bytes |
コンパイル時間 | 3,531 ms |
コンパイル使用メモリ | 74,160 KB |
実行使用メモリ | 57,484 KB |
最終ジャッジ日時 | 2023-10-22 02:33:43 |
合計ジャッジ時間 | 4,515 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 111 ms
57,372 KB |
testcase_01 | AC | 111 ms
57,404 KB |
testcase_02 | WA | - |
testcase_03 | AC | 102 ms
56,164 KB |
testcase_04 | AC | 112 ms
57,316 KB |
testcase_05 | AC | 100 ms
56,116 KB |
testcase_06 | WA | - |
testcase_07 | AC | 111 ms
57,272 KB |
testcase_08 | WA | - |
ソースコード
import java.util.Scanner; public class Main_725_treesForests { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String value1 = scan.next(); scan.close(); String result = replaceTreeoneToForest(value1); System.out.println(result); } public static String replaceTreeoneToForest(String value1) { String replacedString = ""; if (value1.contains("treeone")) { replacedString = value1.replaceAll("treeone", "forest"); } return replacedString; } }