結果
問題 |
No.1020 Reverse
|
ユーザー |
|
提出日時 | 2021-11-11 16:26:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 2,162 ms |
コンパイル使用メモリ | 187,660 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 23:24:23 |
合計ジャッジ時間 | 3,314 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 8 |
ソースコード
#define _GLIBCXX_DEBUG #define ll long long #include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; int main(){ int N, K; cin >> N >> K; string S; cin >> S; string ans = ""; for(int i = K-1; i < N; i++) ans += S[i]; for(int i = 0; i < K-1; i++) ans += S[i]; cout << ans << endl; }