結果

問題 No.3010 水色コーダーさん
ユーザー The_Bouningeeeen
提出日時 2025-01-25 12:32:08
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 30,189 ms
コンパイル使用メモリ 403,980 KB
実行使用メモリ 26,880 KB
最終ジャッジ日時 2025-01-25 22:03:14
合計ジャッジ時間 27,662 ms
ジャッジサーバーID
(参考情報)
judge9 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::{input, marker::Chars};

fn main() {
    input! {
        n: usize,
        _: usize,
        sr: [(Chars, usize); n],
    }

    let mut ans = 0;
    for (s, r) in sr {
        if r < 1200 {
            continue;
        }

        if s[..4].contains(&'x') {
            ans += 1;
        }
    }
    println!("{}", ans);
}
0