結果
問題 |
No.1020 Reverse
|
ユーザー |
|
提出日時 | 2020-04-10 21:29:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 2,075 ms |
コンパイル使用メモリ | 192,188 KB |
最終ジャッジ日時 | 2025-01-09 15:58:03 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 8 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); int n,k;cin>>n>>k; string s; cin>>s; cout<<s.substr(k-1,n)+s.substr(0,k-1); }