結果
問題 | No.1469 programing |
ユーザー |
|
提出日時 | 2021-04-12 17:59:26 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 194 ms / 3,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 714 ms |
コンパイル使用メモリ | 119,552 KB |
実行使用メモリ | 11,076 KB |
最終ジャッジ日時 | 2024-06-28 14:51:11 |
合計ジャッジ時間 | 2,349 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <stdio.h> #include <iostream> #include <vector> using namespace std; int main() { string S; cin >> S; char rem = 0; for (int i = 0; i < S.length(); i++) { if (S[i] != rem) { cout << S[i]; } rem = S[i]; } cout << endl; return 0; }