結果
| 問題 | No.1469 programing |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-07 21:12:24 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 7,361 ms |
| コンパイル使用メモリ | 169,008 KB |
| 実行使用メモリ | 93,832 KB |
| 最終ジャッジ日時 | 2025-12-07 21:12:45 |
| 合計ジャッジ時間 | 18,112 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 TLE * 1 -- * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /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/
ソースコード
using System;
class Program
{
static void Main()
{
string S = Console.ReadLine();
string res = "";
foreach (char c in S)
{
if (res.Length == 0 || res[^1] != c) // ^1 は C# 8 以降で最後の文字
{
res += c;
}
}
Console.WriteLine(res);
}
}