提出 #19485222
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N,A,B;
string S;
char C;
cin >> N >> A >> B >> S;
for(int i=A; i<1+A+(B-A)/2; i++){
C=S[i];
S[i]=S[B-(i-A)];
S[B-(i-A)]=C;
}
cout << S << endl;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - 試験 (Exam) |
| ユーザ | tenpuraudon |
| 言語 | C++ (GCC 9.2.1) |
| 得点 | 0 |
| コード長 | 262 Byte |
| 結果 | RE |
| 実行時間 | 289 ms |
| メモリ | 3588 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 100 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | 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, 01-10.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01-01.txt | WA | 5 ms | 3404 KiB |
| 01-02.txt | RE | 289 ms | 3248 KiB |
| 01-03.txt | WA | 2 ms | 3376 KiB |
| 01-04.txt | WA | 2 ms | 3564 KiB |
| 01-05.txt | WA | 2 ms | 3572 KiB |
| 01-06.txt | RE | 112 ms | 3200 KiB |
| 01-07.txt | WA | 2 ms | 3588 KiB |
| 01-08.txt | WA | 2 ms | 3532 KiB |
| 01-09.txt | WA | 3 ms | 3404 KiB |
| 01-10.txt | WA | 2 ms | 3464 KiB |
| sample-01.txt | WA | 2 ms | 3564 KiB |
| sample-02.txt | WA | 2 ms | 3432 KiB |
| sample-03.txt | WA | 5 ms | 3464 KiB |