結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー | kou6839 |
提出日時 | 2014-12-09 13:00:44 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 3,105 ms |
コンパイル使用メモリ | 71,012 KB |
実行使用メモリ | 57,704 KB |
最終ジャッジ日時 | 2023-09-02 12:05:27 |
合計ジャッジ時間 | 5,352 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 133 ms
55,636 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 134 ms
55,688 KB |
testcase_09 | AC | 137 ms
55,716 KB |
testcase_10 | WA | - |
ソースコード
import java.math.*; import java.util.*; public class Main { 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 men = (rout*.10-rin)/2*(rout*1.0-rin)/2*Math.PI; double kyori = (rout*1.0+rin)/2*2*Math.PI; System.out.println(men*kyori*c); } }