結果

問題 No.3274 Arithmetic Right Shift
コンテスト
ユーザー Facade
提出日時 2025-10-19 15:18:09
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 390 bytes
コンパイル時間 6,888 ms
コンパイル使用メモリ 275,656 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-19 15:18:18
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int inf=1e18;
void solve(){
    int k;cin>>k;
    string s;cin>>s;
    k%=s.size();
    for(int i=0;i<k;i++)cout<<s.front();
    for(int i=k;i<s.size();i++)cout<<s[i-k];
    cout<<"\n";
}
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int t;cin>>t;
    while(t--){
        solve();
    }
}
0