結果
| 問題 | 
                            No.89 どんどんドーナツどーんといこう!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             darknight
                         | 
                    
| 提出日時 | 2016-11-25 22:07:17 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 118 ms / 5,000 ms | 
| コード長 | 381 bytes | 
| コンパイル時間 | 1,954 ms | 
| コンパイル使用メモリ | 74,004 KB | 
| 実行使用メモリ | 41,568 KB | 
| 最終ジャッジ日時 | 2024-10-05 23:01:19 | 
| 合計ジャッジ時間 | 3,799 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 | 
ソースコード
import java.util.*;
 
public class Main {
	public static void main(String[] args) {
	Scanner sc  = new Scanner(System.in);
    double ans = 0;
    int C   = Integer.parseInt(sc.next());
    int a   = Integer.parseInt(sc.next());
    int b   = Integer.parseInt(sc.next());
    ans = C*(b*b-a*a)*(b-a)*2.46740110027;
    System.out.print(ans);
    System.out.println();
	}
        
}
            
            
            
        
            
darknight