結果
問題 | No.1469 programing |
ユーザー |
|
提出日時 | 2021-05-31 03:44:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 60 ms / 3,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 2,920 ms |
コンパイル使用メモリ | 191,392 KB |
最終ジャッジ日時 | 2025-01-21 20:49:06 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; int n = s.length(); cout << s[0]; for (int i = 1; i < n; i++) { if (s[i - 1] != s[i]) cout << s[i]; } cout << '\n'; return 0; }