結果
| 問題 |
No.2775 Nuisance Balls
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-25 19:58:13 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 451 bytes |
| コンパイル時間 | 13,750 ms |
| コンパイル使用メモリ | 403,520 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-25 19:58:30 |
| 合計ジャッジ時間 | 15,400 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 19 |
ソースコード
#[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 += &".".repeat(n);
}
else if n >= a[i] {
output.push(b[i]);
n %= a[i];
}
}
println!("{}", output)
}