結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-04-09 22:34:05 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 503 bytes |
コンパイル時間 | 2,055 ms |
コンパイル使用メモリ | 162,628 KB |
実行使用メモリ | 16,340 KB |
最終ジャッジ日時 | 2024-06-25 06:11:31 |
合計ジャッジ時間 | 10,667 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 5 RE * 9 TLE * 1 |
ソースコード
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> #define ll long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) //namespace mp = boost::multiprecision; //mp::cpp_int /* nyuuryoku retu de ukeoru string s; getline(cin,s); */ using namespace std; signed main(){ string S; cin >> S; for(int i = 0; i < S.size() ; i++){ if(S.at(i) == S.at(i+1) && i+1 < S.size()){ S.erase(S.begin()+i); } } cout << S <<endl; return 0; }