結果

問題 No.2775 Nuisance Balls
ユーザー kyotoku1483
提出日時 2025-03-25 20:05:30
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 15,936 ms
コンパイル使用メモリ 387,560 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-25 20:05:59
合計ジャッジ時間 17,154 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#[allow(unused)]
use proconio::{input, marker::Chars};

fn main() {
    input! {
        mut n: usize,
    }
    let a = vec![720, 360, 180, 30, 6, 1];
    let b = vec!["C", "M", "S", "R", "o", "."];
    let mut output = String::new();
    for i in 0..6 {
        output += &b[i].repeat(n / a[i]);
        n %= a[i];
    }
    println!("{}", output)
}
0