結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-04-09 21:40:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 51 ms / 3,000 ms |
コード長 | 404 bytes |
コンパイル時間 | 963 ms |
コンパイル使用メモリ | 73,480 KB |
最終ジャッジ日時 | 2025-01-20 13:53:04 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#line 1 "main.cpp" #include <iostream> #include <algorithm> #include <numeric> #include <vector> #include <string> using namespace std; void solve() { string s; cin >> s; char prev = '$'; for (auto c : s) { if (c != prev) cout << c; prev = c; } cout << "\n"; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); solve(); return 0; }