結果

問題 No.903 太郎の確率
ユーザー hirogahiroga
提出日時 2019-12-30 06:36:04
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 256 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 10,497 ms
コンパイル使用メモリ 419,172 KB
実行使用メモリ 49,736 KB
最終ジャッジ日時 2024-04-25 01:25:24
合計ジャッジ時間 13,974 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 250 ms
49,664 KB
testcase_01 AC 250 ms
49,616 KB
testcase_02 AC 246 ms
49,596 KB
testcase_03 AC 250 ms
49,736 KB
testcase_04 AC 250 ms
49,520 KB
testcase_05 AC 249 ms
49,664 KB
testcase_06 AC 254 ms
49,696 KB
testcase_07 AC 256 ms
49,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// https://yukicoder.me/problems/no/903

package yukicoder

fun f(x: Int): Float {
    return 1 / x.toFloat()
}

fun main() {
    var n = readLine()!!.toInt() // read integer from the input
    println(f(n)) // print answer to the output
}
0