結果
問題 | No.1020 Reverse |
ユーザー |
![]() |
提出日時 | 2020-04-10 23:03:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 716 ms |
コンパイル使用メモリ | 79,184 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 23:40:31 |
合計ジャッジ時間 | 1,575 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 8 |
ソースコード
#include<iostream> #include<math.h> #include<string.h> #include<vector> #include<algorithm> #include<iomanip> using namespace std; int main(){ int n,k; cin >> n >> k; string s,ans=""; cin >> s; 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; return 0; }