結果
| 問題 | No.3274 Arithmetic Right Shift | 
| コンテスト | |
| ユーザー |  urectanc | 
| 提出日時 | 2025-09-19 21:32:15 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 15 ms / 1,500 ms | 
| コード長 | 460 bytes | 
| コンパイル時間 | 14,109 ms | 
| コンパイル使用メモリ | 400,556 KB | 
| 実行使用メモリ | 7,720 KB | 
| 最終ジャッジ日時 | 2025-09-19 21:33:05 | 
| 合計ジャッジ時間 | 13,453 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 5 | 
ソースコード
use proconio::{input, marker::Chars};
use std::io::Write;
fn main() {
    input! { t: usize }
    let mut output = std::io::BufWriter::new(std::io::stdout().lock());
    for _ in 0..t {
        let ans = solve();
        writeln!(output, "{ans}").unwrap();
    }
}
fn solve() -> String {
    input! {
        k: usize,
        mut s: Chars,
    }
    for _ in 0..k.min(64) {
        s.insert(0, s[0]);
        s.pop();
    }
    s.into_iter().collect()
}
            
            
            
        