結果
問題 |
No.1020 Reverse
|
ユーザー |
![]() |
提出日時 | 2020-02-27 18:13:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 529 ms |
コンパイル使用メモリ | 67,316 KB |
実行使用メモリ | 13,632 KB |
最終ジャッジ日時 | 2024-10-13 15:59:29 |
合計ジャッジ時間 | 10,358 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 3 -- * 6 |
ソースコード
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { int n, k; cin>>n>>k; string s; cin>>s; for(int i=0; i<n-k+1; i++) reverse(s.begin()+i, s.begin()+i+k); cout<<s<<endl; return 0; }