結果
問題 | No.3010 水色コーダーさん |
ユーザー |
|
提出日時 | 2025-01-25 12:38:26 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 175 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 25,151 ms |
コンパイル使用メモリ | 378,624 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-25 22:07:28 |
合計ジャッジ時間 | 28,042 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge10 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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,marker::Chars}; fn main() { input! { n: usize, m: usize, } let mut ans = 0; for _ in 0..n { input! { s: Chars, r: usize, } if r < 1200 { continue; } if s.iter().take(4).any(|&c| c == 'x') { ans += 1; } } println!("{}", ans); }