結果
| 問題 | No.1020 Reverse |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-10 21:28:52 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 739 ms |
| コンパイル使用メモリ | 136,960 KB |
| 実行使用メモリ | 16,200 KB |
| 最終ジャッジ日時 | 2026-05-24 08:12:18 |
| 合計ジャッジ時間 | 9,919 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 TLE * 2 -- * 6 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n,k;
string s;
cin >> n >> k >> s;
for (int i=0; i+k-1<n; i++) {
reverse(s.begin()+i, s.begin()+i+k);
}
cout << s << endl;
}