結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-04-09 22:10:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 62 ms / 3,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 2,937 ms |
コンパイル使用メモリ | 191,936 KB |
最終ジャッジ日時 | 2025-01-20 14:29:07 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; int n = s.size(); for (int i = 0; i < n; i++) { cout << s[i]; if (i < n - 1 && s[i] == s[i + 1]) i++; } cout << endl; return 0; }