結果
問題 |
No.1020 Reverse
|
ユーザー |
![]() |
提出日時 | 2020-04-10 21:22:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 1,699 ms |
コンパイル使用メモリ | 169,576 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-15 16:42:02 |
合計ジャッジ時間 | 2,644 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "debug.h" #else #define DEBUG(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n, k; cin >> n >> k; string s; cin >> s; rotate(begin(s), begin(s) + (k - 1), end(s)); cout << s << '\n'; }