結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-10 19:21:19 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 17,227 ms |
| コンパイル使用メモリ | 380,548 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 23:51:15 |
| 合計ジャッジ時間 | 15,033 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
use std::collections::HashSet;
fn main() {
let mut xx = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
let xx: Vec<usize> = xx.split_whitespace().flat_map(str::parse).collect();
let n_duplicate = xx[2] - xx[3..].iter().collect::<HashSet<_>>().len();
println!("{}", n_duplicate * (xx[0] + xx[1]));
}
cra77756176