結果
| 問題 | No.725 木は明らかに森である |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-03 10:17:13 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 592 bytes |
| 記録 | |
| コンパイル時間 | 7,509 ms |
| コンパイル使用メモリ | 168,648 KB |
| 実行使用メモリ | 185,800 KB |
| 最終ジャッジ日時 | 2025-12-03 10:17:22 |
| 合計ジャッジ時間 | 8,652 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (96 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine()!;
string output = "";
if (input.Contains("treeone"))
{
foreach (char c in input)
{
output += c;
if (output.Contains("treeone"))
{
output = output.Remove(output.Length - 7, 7);
output += "forest";
}
}
Console.WriteLine(output);
}
else
{
Console.WriteLine(input);
}
}
}