結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー d_nishiyama85d_nishiyama85
提出日時 2016-09-27 23:56:30
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 302 ms / 5,000 ms
コード長 345 bytes
コンパイル時間 9,143 ms
コンパイル使用メモリ 432,116 KB
実行使用メモリ 55,436 KB
最終ジャッジ日時 2024-04-30 12:14:48
合計ジャッジ時間 13,419 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 296 ms
55,184 KB
testcase_01 AC 298 ms
55,180 KB
testcase_02 AC 298 ms
55,280 KB
testcase_03 AC 287 ms
55,160 KB
testcase_04 AC 289 ms
55,196 KB
testcase_05 AC 302 ms
55,224 KB
testcase_06 AC 291 ms
55,436 KB
testcase_07 AC 297 ms
55,296 KB
testcase_08 AC 301 ms
55,376 KB
testcase_09 AC 295 ms
55,236 KB
testcase_10 AC 290 ms
55,188 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 C = readLine()!!.toInt()
    val cin = Scanner(System.`in`)
    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