結果
問題 |
No.3010 水色コーダーさん
|
ユーザー |
|
提出日時 | 2025-01-25 12:48:39 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 141 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 26,954 ms |
コンパイル使用メモリ | 377,380 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2025-01-25 22:22:25 |
合計ジャッジ時間 | 27,615 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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
ソースコード
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()); }