結果
| 問題 | No.1020 Reverse |
| コンテスト | |
| ユーザー |
uw_yu1rabbit
|
| 提出日時 | 2020-04-16 14:35:37 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 1,363 ms |
| コンパイル使用メモリ | 213,736 KB |
| 実行使用メモリ | 11,684 KB |
| 最終ジャッジ日時 | 2026-06-09 13:32:10 |
| 合計ジャッジ時間 | 7,697 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 4 TLE * 2 -- * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k;
string s;
cin >> n >> k >> s;
for(int i = 0; i < n - k + 1; i++){
for(int j = i; j < i + k; j++){
swap(s[j],s[i + k - j]);
}
}
cout << s << endl;
}
uw_yu1rabbit