結果

問題 No.3794 Super Chat
ユーザー atcoder8
提出日時 2026-11-13 22:33:27
言語 Rust
(1.99.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 924µs
コード長 305 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,315 ms
コンパイル使用メモリ 169,216 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-11-13 22:33:44
合計ジャッジ時間 5,404 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::input;

fn main() {
    input! {
        (n, m): (usize, usize),
        sp: [(String, u64); n],
        tt: [String; m],
    }

    let str_to_p = |t: &str| sp.iter().find(|(s, _)| s == t).unwrap().1;

    let total = tt.iter().map(|t| str_to_p(t)).sum::<u64>();
    println!("{total}");
}
0