結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー バカらっくバカらっく
提出日時 2022-02-03 14:10:52
言語 Kotlin
(1.9.10)
結果
AC  
実行時間 290 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 11,554 ms
コンパイル使用メモリ 421,456 KB
実行使用メモリ 56,244 KB
最終ジャッジ日時 2023-09-02 03:17:04
合計ジャッジ時間 23,233 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 279 ms
56,112 KB
testcase_01 AC 278 ms
56,056 KB
testcase_02 AC 284 ms
55,960 KB
testcase_03 AC 285 ms
55,800 KB
testcase_04 AC 289 ms
56,148 KB
testcase_05 AC 282 ms
56,076 KB
testcase_06 AC 281 ms
56,008 KB
testcase_07 AC 283 ms
56,024 KB
testcase_08 AC 282 ms
56,060 KB
testcase_09 AC 284 ms
55,892 KB
testcase_10 AC 285 ms
55,948 KB
testcase_11 AC 282 ms
56,140 KB
testcase_12 AC 283 ms
55,944 KB
testcase_13 AC 284 ms
55,952 KB
testcase_14 AC 280 ms
55,896 KB
testcase_15 AC 286 ms
55,840 KB
testcase_16 AC 288 ms
56,104 KB
testcase_17 AC 284 ms
56,112 KB
testcase_18 AC 286 ms
55,900 KB
testcase_19 AC 287 ms
56,088 KB
testcase_20 AC 281 ms
55,924 KB
testcase_21 AC 284 ms
56,136 KB
testcase_22 AC 284 ms
55,952 KB
testcase_23 AC 289 ms
56,184 KB
testcase_24 AC 283 ms
55,900 KB
testcase_25 AC 288 ms
55,964 KB
testcase_26 AC 284 ms
56,132 KB
testcase_27 AC 287 ms
55,932 KB
testcase_28 AC 286 ms
55,948 KB
testcase_29 AC 287 ms
56,064 KB
testcase_30 AC 287 ms
56,244 KB
testcase_31 AC 290 ms
56,140 KB
testcase_32 AC 285 ms
56,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val d1 = listOf(2,3,5,7,11,13)
    val d2 = listOf(4,6,8,9,10,12)
    val k = readLine()!!.toInt()
    val ans =  d1.map { n1 -> d2.count { n1*it == k } }.sum().let { it / 36.0 }
    println(ans)
}
0