結果
問題 | No.1469 programing |
ユーザー |
|
提出日時 | 2021-04-12 22:21:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 121 ms / 3,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 1,373 ms |
コンパイル使用メモリ | 167,948 KB |
実行使用メモリ | 12,460 KB |
最終ジャッジ日時 | 2024-06-28 17:53:03 |
合計ジャッジ時間 | 3,100 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair<int, int> int main() { string s; cin >> s; rep(i, s.size()) { if (i == 0) { cout << s[0]; continue; } if (s[i-1] == s[i]) continue; cout << s[i]; } cout << endl; }