結果
問題 | No.1020 Reverse |
ユーザー |
![]() |
提出日時 | 2020-04-10 23:31:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
OLE
|
実行時間 | - |
コード長 | 619 bytes |
コンパイル時間 | 869 ms |
コンパイル使用メモリ | 82,084 KB |
実行使用メモリ | 8,576 KB |
最終ジャッジ日時 | 2024-09-16 02:31:32 |
合計ジャッジ時間 | 8,205 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | OLE * 1 -- * 2 |
other | -- * 15 |
ソースコード
#include <stdio.h>#include <math.h>#include <iostream>#include <algorithm>#include <vector>#include <numeric>#include <string>#include <map>#include <stack>using namespace std;typedef long long int lli;#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)#define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--)int main(void){int N, K;cin >> N >> K;string s;cin >> s;int x = N - K + 1;for (int i = K - 1; i < N; i++){cout << s[i];}for (int i = 0; i < K - 1; i--){cout << s[i];}return 0;}