結果

問題 No.2070 Icosahedron
ユーザー koboshikoboshi
提出日時 2022-09-16 21:20:37
言語 Kotlin
(1.6.10)
結果
AC  
実行時間 219 ms / 2,000 ms
コード長 840 bytes
コンパイル時間 9,404 ms
使用メモリ 46,224 KB
最終ジャッジ日時 2023-01-11 05:47:40
合計ジャッジ時間 12,866 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 219 ms
45,544 KB
testcase_01 AC 204 ms
45,896 KB
testcase_02 AC 203 ms
46,108 KB
testcase_03 AC 204 ms
45,668 KB
testcase_04 AC 200 ms
45,832 KB
testcase_05 AC 204 ms
45,512 KB
testcase_06 AC 208 ms
45,492 KB
testcase_07 AC 208 ms
45,768 KB
testcase_08 AC 202 ms
45,576 KB
testcase_09 AC 199 ms
45,468 KB
testcase_10 AC 212 ms
46,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter
import java.util.*
import kotlin.math.*

fun PrintWriter.solve() {
    val n = nextInt()
    println(2.18169499062491237350 * n * n * n)
}

fun main() {
    Thread(null, {
        val writer = PrintWriter(System.out, false)
        writer.solve()
        writer.flush()
    }, "solve", abs(1L.shl(26)))
        .apply { setUncaughtExceptionHandler { _, e -> e.printStackTrace(); kotlin.system.exitProcess(1) } }
        .apply { start() }.join()
}

// region Scanner
private var st = StringTokenizer("")
private val br = System.`in`.bufferedReader()

fun next(): String {
    while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())
    return st.nextToken()
}

fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextLine() = br.readLine()
fun nextDouble() = next().toDouble()
// endregion
0