結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2021-04-03 01:31:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| コンパイル時間 | 553 ms |
| コンパイル使用メモリ | 67,584 KB |
| 最終ジャッジ日時 | 2025-01-20 10:18:06 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | AC * 1 RE * 14 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string S,ans="";
cin>>S;
if(S.size()<2){
cout<<S<<endl;
return 0;
}
ans=S.at(0);
for(int i=1;i<S.size();i++){
if(S.at(i)!=S.at(i+1)){
ans+=S.at(i+1);
}
}
cout<<S<<endl;
return 0;
}
harurun