結果
| 問題 | No.89 どんどんドーナツどーんといこう! |
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2017-01-19 15:48:29 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 5,000 ms |
| コード長 | 529 bytes |
| 記録 | |
| コンパイル時間 | 1,700 ms |
| コンパイル使用メモリ | 81,296 KB |
| 実行使用メモリ | 41,712 KB |
| 最終ジャッジ日時 | 2026-04-21 07:49:07 |
| 合計ジャッジ時間 | 3,734 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int perCalorie = sc.nextInt();
double rIn = sc.nextInt();
double rOut = sc.nextInt();
double radius = (rOut - rIn) / 2;
double surfaceArea = radius * radius * Math.PI;
double centerGravity = (rOut + rIn) / 2;
double volume = 2 * Math.PI * centerGravity * surfaceArea;
System.out.println(volume * perCalorie);
}
}
samplelpmas