結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-19 14:28:57 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| コード長 | 450 bytes |
| コンパイル時間 | 4,820 ms |
| コンパイル使用メモリ | 74,216 KB |
| 実行使用メモリ | 41,816 KB |
| 最終ジャッジ日時 | 2024-10-05 23:13:01 |
| 合計ジャッジ時間 | 6,788 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
import java.util.Scanner;
public class No89 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double c = sc.nextDouble();
double rIn = sc.nextDouble();
double rOut = sc.nextDouble();
double volume = (1d / 4d) * Math.pow(Math.PI, 2) * (rIn + rOut) * Math.pow((rOut - rIn), 2);
double cal = c * volume;
System.out.println(cal);
sc.close();
}
}