結果
| 問題 |
No.2460 #強調#
|
| コンテスト | |
| ユーザー |
kolvlmam3
|
| 提出日時 | 2023-10-14 23:11:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 462 bytes |
| コンパイル時間 | 1,794 ms |
| コンパイル使用メモリ | 192,296 KB |
| 最終ジャッジ日時 | 2025-02-17 07:49:56 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef local
#include "debug.hpp"
#else
#define debug(...) ;
#endif
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
constexpr char endl = '\n';
string s;
cin >> s;
const int n = (int)s.size();
int cnt = 0;
for (int i = 0; i < n; i++) {
if (cnt == 1 && s[i] != '#') cout << s[i];
if (s[i] == '#') cnt++;
}
cout << endl;
return 0;
}
kolvlmam3