結果

問題 No.2864 String of yuusaan
ユーザー well-definedwell-defined
提出日時 2024-09-14 13:23:28
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 14,334 ms
コンパイル使用メモリ 378,600 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-26 14:42:31
合計ジャッジ時間 12,976 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main () {
    input! {
        _: u64,
        k: u64,
    }
    let k = k-1;
    let a = "yuusaanuusaa".to_string();
    let q = (k % 12) as usize;
    println!("{}", *a.as_bytes().get(q).unwrap() as char);
}
0