結果
問題 | No.1469 programing |
ユーザー |
![]() |
提出日時 | 2021-12-18 15:46:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 145 ms / 3,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 2,053 ms |
コンパイル使用メモリ | 192,412 KB |
最終ジャッジ日時 | 2025-01-27 03:19:15 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void){ string s; cin >> s; int N = s.length(); for( int i = 0; i < N-1; i++ ) { if( s[i] != s[i+1] ) cout << s[i]; } cout << s[N-1] << endl; }