結果

問題 No.3010 水色コーダーさん
ユーザー toyboot4e
提出日時 2025-01-25 12:35:59
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 10,753 ms
コンパイル使用メモリ 403,680 KB
実行使用メモリ 17,920 KB
最終ジャッジ日時 2025-01-25 22:06:48
合計ジャッジ時間 12,579 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `m`
 --> src/main.rs:6:9
  |
6 |         m: usize,
  |         ^ help: if this is intentional, prefix it with an underscore: `_m`
  |
  = note: `#[warn(unused_variables)]` on by default

ソースコード

diff #

use proconio::input;

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

    let rest = xs
        .iter()
        .filter(|(s, r)| *r >= 1200 && s.chars().take(4).any(|c| c == 'x'))
        .collect::<Vec<_>>();

    println!("{}", rest.len());
}
0