結果
| 問題 | 
                            No.89 どんどんドーナツどーんといこう!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kohaku_kohaku
                         | 
                    
| 提出日時 | 2016-11-13 22:50:23 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 126 ms / 5,000 ms | 
| コード長 | 390 bytes | 
| コンパイル時間 | 1,903 ms | 
| コンパイル使用メモリ | 74,104 KB | 
| 実行使用メモリ | 41,636 KB | 
| 最終ジャッジ日時 | 2024-10-05 23:00:32 | 
| 合計ジャッジ時間 | 3,998 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 | 
ソースコード
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int C = sc.nextInt();
        int Rin = sc.nextInt();
        int Rout= sc.nextInt();
        double r = (Rout-Rin)/2.0;
        double d = (Rout+Rin)/2.0;
        double total = C*r*r*Math.PI * 2*d*Math.PI;
        System.out.println(total);
    }
}
            
            
            
        
            
kohaku_kohaku