結果

問題 No.1551 誕生日の三角形
ユーザー 👑 箱
提出日時 2021-07-11 20:18:03
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 275 ms / 1,000 ms
コード長 632 bytes
コンパイル時間 13,069 ms
コンパイル使用メモリ 416,332 KB
実行使用メモリ 50,596 KB
最終ジャッジ日時 2023-09-14 20:21:04
合計ジャッジ時間 17,810 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 270 ms
50,300 KB
testcase_01 AC 266 ms
50,140 KB
testcase_02 AC 266 ms
50,596 KB
testcase_03 AC 269 ms
50,332 KB
testcase_04 AC 264 ms
50,596 KB
testcase_05 AC 261 ms
50,232 KB
testcase_06 AC 263 ms
50,236 KB
testcase_07 AC 275 ms
50,300 KB
testcase_08 AC 257 ms
50,404 KB
testcase_09 AC 258 ms
50,248 KB
testcase_10 AC 258 ms
50,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

fun PrintWriter.solve() {
    val l = nextInt()
    println(0.0481125224324688137111 * l * l)
}

fun main() {
    val writer = PrintWriter(System.out, false)
    writer.solve()
    writer.flush()
}

// 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