結果

問題 No.1469 programing
ユーザー hitonanode
提出日時 2021-04-09 22:36:51
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 126 ms / 3,000 ms
コード長 205 bytes
コンパイル時間 1,991 ms
コンパイル使用メモリ 190,884 KB
最終ジャッジ日時 2025-01-20 14:53:46
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    char last = -1;
    string s;
    cin >> s;
    for (auto now : s) {
        if (now != last) printf("%c", now);
        last = now;
    }
}
0