結果
| 問題 | No.3010 水色コーダーさん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 12:38:26 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 4,428 ms |
| コンパイル使用メモリ | 191,992 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-23 20:10:02 |
| 合計ジャッジ時間 | 8,892 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)]` (part of `#[warn(unused)]`) 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);
}