提出 #75838864
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
int b;
cin >> b;
for (int i=0; i<b; i++) {
a.at(i) = ' ';
a.at(a.size()-1-i) = ' ';
}
cout << a << endl;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Chompers |
| ユーザ | Kane218 |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 227 Byte |
| 結果 | AC |
| 実行時間 | 2 ms |
| メモリ | 3568 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt |
| All | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00-sample-01.txt | AC | 2 ms | 3424 KiB |
| 00-sample-02.txt | AC | 1 ms | 3380 KiB |
| 00-sample-03.txt | AC | 1 ms | 3424 KiB |
| 01-01.txt | AC | 1 ms | 3468 KiB |
| 01-02.txt | AC | 1 ms | 3448 KiB |
| 01-03.txt | AC | 1 ms | 3456 KiB |
| 01-04.txt | AC | 1 ms | 3568 KiB |
| 01-05.txt | AC | 1 ms | 3404 KiB |
| 01-06.txt | AC | 1 ms | 3424 KiB |
| 01-07.txt | AC | 1 ms | 3388 KiB |
| 01-08.txt | AC | 1 ms | 3464 KiB |
| 01-09.txt | AC | 1 ms | 3516 KiB |