結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー Grenache
提出日時 2015-09-23 01:24:41
言語 Java
(openjdk 23)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 417 bytes
コンパイル時間 4,171 ms
コンパイル使用メモリ 74,336 KB
実行使用メモリ 41,520 KB
最終ジャッジ日時 2024-10-05 22:42:35
合計ジャッジ時間 5,325 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder89 {

    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 s = Math.PI * (rout - rin) * (rout - rin) / 4;
        
        System.out.printf("%.6f\n", Math.PI * (rout + rin) * s * c);

        sc.close();
    }
}
0