結果
| 問題 |
No.1020 Reverse
|
| コンテスト | |
| ユーザー |
Moon0603
|
| 提出日時 | 2020-04-11 17:46:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 866 ms |
| コンパイル使用メモリ | 67,456 KB |
| 最終ジャッジ日時 | 2025-01-09 17:25:38 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 8 |
ソースコード
#include <iostream>
#include <string>
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n, k;
std::cin >> n >> k;
std::string s;
std::cin >> s;
std::cout << s.substr(k - 1, n - k + 1) << s.substr(0, k - 1) << '\n';
return 0;
}
Moon0603