結果
| 問題 | No.3648 Overbooked Meeting Rooms |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2026-09-22 16:19:51 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 730µs | |
| コード長 | 803 bytes |
| 記録 | |
| コンパイル時間 | 765 ms |
| コンパイル使用メモリ | 201,096 KB |
| 実行使用メモリ | 9,868 KB |
| 最終ジャッジ日時 | 2026-09-22 16:19:54 |
| 合計ジャッジ時間 | 3,127 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#![allow(non_snake_case, unused_imports)]
use std::collections::{BinaryHeap, HashMap, HashSet};
use ac_library::{Additive, Min, Segtree};
use proconio::{input, marker::Usize1, marker::Chars};
use itertools::Itertools;
#[allow(unused_macros)]
macro_rules! d {
( $( $x:expr ),* $(,)? ) => {
eprintln!(
concat!( $( stringify!($x), "={:?} " ),* ),
$( $x ),*
);
};
}
#[allow(dead_code)]
fn yn(b: bool) -> &'static str {
if b { "Yes" } else { "No" }
}
fn main() {
input! {
N: usize,
M: usize,
A: [Usize1; N],
B: [usize; M],
}
let freq = A.iter().counts();
let ans = freq.iter()
.map(|(&k, &v)| {
v.saturating_sub(B[*k])
})
.sum::<usize>();
println!("{}", ans);
}
norioc