結果
| 問題 | 
                            No.89 どんどんドーナツどーんといこう!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             cra77756176
                         | 
                    
| 提出日時 | 2022-12-05 23:01:03 | 
| 言語 | Rust  (1.83.0 + proconio)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 5,000 ms | 
| コード長 | 413 bytes | 
| コンパイル時間 | 13,268 ms | 
| コンパイル使用メモリ | 381,920 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-12 19:19:32 | 
| 合計ジャッジ時間 | 14,219 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 | 
ソースコード
use std::f64::consts::PI;
fn main() {
    let mut input = String::new();
    std::io::Read::read_to_string(&mut std::io::stdin(), &mut input).ok();
    let input: Vec<f64> = input
        .split_whitespace()
        .map(|n| n.parse().unwrap())
        .collect();
    let r = (input[2] - input[1]) / 2.;
    let answer = input[0] * (2. * PI * (input[1] + r)) * (PI * r.powi(2));
    println!("{}", answer);
}
            
            
            
        
            
cra77756176