結果
| 問題 |
No.1381 Simple Geometry 1
|
| コンテスト | |
| ユーザー |
BrightLight
|
| 提出日時 | 2021-02-07 22:42:39 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 403 bytes |
| コンパイル時間 | 13,013 ms |
| コンパイル使用メモリ | 377,792 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 16:35:39 |
| 合計ジャッジ時間 | 14,190 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 29 |
ソースコード
fn main() {
let d: Vec<usize> = read_vec();
println!("{}", (d[0] - d[1] * d[2]) as f64 / 2.0);
}
fn read<T: std::str::FromStr>() -> T {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
s.trim().parse().ok().unwrap()
}
fn read_vec<T: std::str::FromStr>() -> Vec<T> {
read::<String>().split_whitespace()
.map(|e| e.parse().ok().unwrap()).collect()
}
BrightLight