結果

問題 No.1469 programing
ユーザー terry_u16
提出日時 2021-04-09 21:39:41
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 111 ms / 3,000 ms
コード長 285 bytes
コンパイル時間 860 ms
コンパイル使用メモリ 119,040 KB
実行使用メモリ 14,416 KB
最終ジャッジ日時 2024-06-25 04:38:45
合計ジャッジ時間 2,019 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

int main() {
    std::string s, t;
    std::cin >> s;
    auto last = '_';

    for (auto c : s)
    {
        if (last != c)
        {
            t.push_back(c);
        }
        
        last = c;
    }

    std::cout << t << std::endl;    
}
0