結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-08 19:01:02 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 451 bytes |
| コンパイル時間 | 13,686 ms |
| コンパイル使用メモリ | 384,288 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-14 15:48:31 |
| 合計ジャッジ時間 | 15,021 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
fn main() {
let mut ab = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut ab).ok();
let ab: Vec<usize> = ab.split_whitespace().skip(1).flat_map(str::parse).collect();
let n = ab.len() / 2;
let mut scores = vec![0; 101];
for i in 0..n {
scores[ab[n + i]] += ab[i];
}
if scores[0] >= *scores.iter().max().unwrap() {
println!("YES");
} else {
println!("NO");
}
}
cra77756176