結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー d_nishiyama85d_nishiyama85
提出日時 2016-09-28 00:00:59
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 308 ms / 5,000 ms
コード長 345 bytes
コンパイル時間 13,115 ms
コンパイル使用メモリ 429,760 KB
実行使用メモリ 55,368 KB
最終ジャッジ日時 2024-04-30 12:16:34
合計ジャッジ時間 12,624 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
55,148 KB
testcase_01 AC 288 ms
55,320 KB
testcase_02 AC 293 ms
55,228 KB
testcase_03 AC 298 ms
55,292 KB
testcase_04 AC 308 ms
55,108 KB
testcase_05 AC 284 ms
55,160 KB
testcase_06 AC 287 ms
55,204 KB
testcase_07 AC 283 ms
55,312 KB
testcase_08 AC 291 ms
55,312 KB
testcase_09 AC 287 ms
55,196 KB
testcase_10 AC 287 ms
55,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.util.*

fun main(args: Array<String>) {

    val cin = Scanner(System.`in`)
    val C  : Int = cin.nextInt()
    val R1 : Int = cin.nextInt()
    val R2 : Int = cin.nextInt()

    val S : Double = Math.PI * (R2 - R1) * (R2 - R1) / 4
    val V : Double = 2 * Math.PI * (R1 + R2) / 2 * S
    val Cal : Double = V * C
    println(Cal)
}
0