結果
| 問題 |
No.1020 Reverse
|
| コンテスト | |
| ユーザー |
takkun_k_t
|
| 提出日時 | 2020-04-10 21:35:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 1,485 ms |
| コンパイル使用メモリ | 167,944 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-15 19:28:37 |
| 合計ジャッジ時間 | 11,442 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 TLE * 3 -- * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k;
string s;
cin >> n >> k;
cin >> s;
for(int i=0;i<n-k+1;i++){
reverse(s.begin()+i,s.begin()+i+k);
}
cout << s;
return 0;
}
takkun_k_t