結果
| 問題 |
No.1020 Reverse
|
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2023-09-07 00:09:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 423 bytes |
| コンパイル時間 | 2,008 ms |
| コンパイル使用メモリ | 192,908 KB |
| 最終ジャッジ日時 | 2025-02-16 19:10:10 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
int n, k;
cin >> n >> k;
string s;
cin >> s;
string t = "";
rep(i, n) t.push_back(s[(i + k - 1) % n]);
cout << t << endl;
return 0;
}
a01sa01to