結果
問題 | No.191 供託金 |
ユーザー |
|
提出日時 | 2024-07-31 17:45:46 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 11,568 ms |
コンパイル使用メモリ | 403,880 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-31 17:46:00 |
合計ジャッジ時間 | 13,467 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
warning: unused imports: `BTreeSet`, `HashMap`, `hash::Hash` --> src/main.rs:2:19 | 2 | collections::{BTreeSet, HashMap}, | ^^^^^^^^ ^^^^^^^ 3 | hash::Hash, | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
ソースコード
use std::{ collections::{BTreeSet, HashMap}, hash::Hash, }; fn main() { proconio::input! { n: usize, c: [u64; n], } let sum = c.iter().sum::<u64>(); println!("{}", c.iter().filter(|c| *c * 10 <= sum).count() * 30); }