結果

問題 No.1469 programing
ユーザー m_tsubasa
提出日時 2021-04-09 21:29:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 139 ms / 3,000 ms
コード長 209 bytes
コンパイル時間 1,862 ms
コンパイル使用メモリ 191,932 KB
最終ジャッジ日時 2025-01-20 13:35:27
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
  string s;
  cin >> s;
  int n = s.size();
  for (int i = 0; i < n; ++i)
    if (!i || s[i] != s[i - 1]) cout << s[i];
  cout << endl;
  return 0;
}
0