肉を食べた。油にやられている。
PAST #16 第16回 アルゴリズム実技検定(過去問)
- D - 相対評価のスコア
https://atcoder.jp/contests/past16-open/tasks/past202309_d
- 提出: https://atcoder.jp/contests/past16-open/submissions/48885668
- 事前に max を求めておき、前から順に計算する
use proconio::input; fn main() { input! { n: usize, a: [usize; n], }; let max = a.iter().copied().max().unwrap(); for a_i in a { let ans = (1_000_000_000_f64 * a_i as f64 / max as f64).round(); println!("{}", ans) } }
今日のコミット。