提出 #75878763
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
int N;
cin >> S;
cin >> N;
for(int i = N;i < S.size() - N;i++){
cout << S.at(i);
}
cout << endl;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Chompers |
| ユーザ | zyddya |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 199 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3656 KiB |
コンパイルエラー
./Main.cpp: In function 'int main()':
./Main.cpp:11:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i = N;i < S.size() - N;i++){
| ~~^~~~~~~~~~~~~~
ジャッジ結果
| セット名 | 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 | 1 ms | 3556 KiB |
| 00-sample-02.txt | AC | 1 ms | 3496 KiB |
| 00-sample-03.txt | AC | 1 ms | 3520 KiB |
| 01-01.txt | AC | 1 ms | 3476 KiB |
| 01-02.txt | AC | 1 ms | 3592 KiB |
| 01-03.txt | AC | 1 ms | 3484 KiB |
| 01-04.txt | AC | 1 ms | 3656 KiB |
| 01-05.txt | AC | 1 ms | 3496 KiB |
| 01-06.txt | AC | 1 ms | 3536 KiB |
| 01-07.txt | AC | 1 ms | 3496 KiB |
| 01-08.txt | AC | 1 ms | 3496 KiB |
| 01-09.txt | AC | 1 ms | 3440 KiB |