結果
| 問題 | No.3010 水色コーダーさん |
| コンテスト | |
| ユーザー |
rustGanbaruman
|
| 提出日時 | 2026-02-05 11:56:53 |
| 言語 | Rust (1.92.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 405 ms / 2,000 ms |
| コード長 | 1,140 bytes |
| 記録 | |
| コンパイル時間 | 2,432 ms |
| コンパイル使用メモリ | 200,964 KB |
| 実行使用メモリ | 159,712 KB |
| 最終ジャッジ日時 | 2026-02-05 11:57:06 |
| 合計ジャッジ時間 | 11,481 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
use std::io::{Read,self};
fn main(){
let mut buf = String::new();
io::stdin().read_to_string(&mut buf).unwrap();
let mut input = buf.split_ascii_whitespace();
let n:usize = input.next().unwrap().parse().unwrap();
let m:usize = input.next().unwrap().parse().unwrap();
let mut results:Vec<Vec<String>> = vec![vec![];n];
for i in 0..n{
let result = input.next().unwrap().parse::<String>().unwrap();
for j in result.chars(){
results[i].push(j.to_string());
}
results[i].push(input.next().unwrap().parse::<String>().unwrap());
}
let mut down = 0;
for i in 0..n{
let mut wa = false;
if results[i][m].parse::<usize>().unwrap() < 1200{
continue;
}else{
for j in 0..4{
if results[i][j].parse::<char>().unwrap() == 'x'{
wa = true;
break;
}
}
}
if wa {
down += 1;
//println!("down")
}else{
//println!("ok")
}
}
println!("{}", down)
}
rustGanbaruman