結果

問題 No.3279 Dhole vs Monster
ユーザー The_Bouningeeeen
提出日時 2025-09-26 21:21:39
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 27,633 ms
コンパイル使用メモリ 399,652 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-26 21:22:08
合計ジャッジ時間 25,149 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        l: usize,
        s: String,
    }

    let ans = [390, 429, 468, 507, 546];
    if s == "Beat" {
        println!("{}", ans[l]);
    } else {
        println!("{}", ans[l - 1]);
    }
}
0