結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー バカらっくバカらっく
提出日時 2019-09-27 09:27:51
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 306 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 12,233 ms
コンパイル使用メモリ 453,008 KB
実行使用メモリ 54,424 KB
最終ジャッジ日時 2023-10-24 16:00:59
合計ジャッジ時間 15,827 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 302 ms
54,412 KB
testcase_01 AC 298 ms
54,416 KB
testcase_02 AC 305 ms
54,392 KB
testcase_03 AC 306 ms
54,404 KB
testcase_04 AC 303 ms
54,416 KB
testcase_05 AC 293 ms
54,412 KB
testcase_06 AC 297 ms
54,424 KB
testcase_07 AC 291 ms
54,408 KB
testcase_08 AC 290 ms
54,388 KB
testcase_09 AC 286 ms
54,388 KB
testcase_10 AC 292 ms
54,416 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:4:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

import kotlin.math.PI


fun main(arr:Array<String>) {
    val cal = readLine()!!.toInt()
    val (inR, outR) = readLine()!!.split(" ").map { it.toInt() }
    var ans = PI * PI / 4 * (inR+outR)*(outR-inR)*(outR-inR)
    println(ans*cal)
}

0