結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-07 19:13:50 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 127 ms / 5,000 ms |
| コード長 | 435 bytes |
| コンパイル時間 | 3,324 ms |
| コンパイル使用メモリ | 74,368 KB |
| 実行使用メモリ | 41,436 KB |
| 最終ジャッジ日時 | 2024-10-05 22:21:02 |
| 合計ジャッジ時間 | 4,844 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 |
ソースコード
import java.util.Scanner;
public class Main1 {
public static void main(String[] args) {
Main1 p = new Main1();
}
public Main1() {
Scanner sc = new Scanner(System.in);
int c=sc.nextInt();
int a =sc.nextInt();
int b =sc.nextInt();
solve(c,a,b);
}
public void solve(int c, int a, int b) {
double res = Math.PI*Math.PI*Math.pow((b-a)/2.0, 2)*2*(a+(b-a)/2.0)*c;
System.out.println(res);
}
}