結果
問題 |
No.1469 programing
|
ユーザー |
![]() |
提出日時 | 2021-04-09 22:15:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 152 ms / 3,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 1,913 ms |
コンパイル使用メモリ | 194,484 KB |
最終ジャッジ日時 | 2025-01-20 14:33:21 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; vector<char> q; q.emplace_back(s[0]); for(auto a:s){ if(a==q.back()) continue; else q.emplace_back(a); } for(auto a:q) cout<<a; cout<<endl; }