結果
問題 |
No.2775 Nuisance Balls
|
ユーザー |
|
提出日時 | 2025-03-25 20:02:07 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 13,038 ms |
コンパイル使用メモリ | 401,192 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-25 20:02:22 |
合計ジャッジ時間 | 13,362 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#[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 { if i == 5 { output += &b[i].repeat(n); } else { output += &b[i].repeat(n / a[i]); n %= a[i]; } } println!("{}", output) }