結果
| 問題 | No.926 休日の平均 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-31 16:35:06 |
| 言語 | Rust (1.93.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 866 ms |
| コンパイル使用メモリ | 193,892 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-01-31 16:35:08 |
| 合計ジャッジ時間 | 2,053 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
fn main() {
let stdin = std::io::read_to_string(std::io::stdin()).unwrap();
let mut stdin = stdin.split_ascii_whitespace();
let a: u16 = stdin.next().unwrap().parse().unwrap();
let b: u16 = stdin.next().unwrap().parse().unwrap();
let c: u16 = stdin.next().unwrap().parse().unwrap();
println!("{:>.06}", output(solve(a, b, c)));
}
fn solve(a: u16, b: u16, c: u16) -> f32 {
(a as u32 * c as u32) as f32 / b as f32
}
fn output(ans: f32) -> f32 {
ans
}