結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 💕💖💞💕💖💞
提出日時 2017-06-24 16:33:52
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 1,936 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 11,486 ms
コンパイル使用メモリ 431,512 KB
実行使用メモリ 97,492 KB
最終ジャッジ日時 2024-04-30 14:24:48
合計ジャッジ時間 19,456 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 420 ms
57,132 KB
testcase_01 AC 550 ms
66,220 KB
testcase_02 AC 526 ms
64,356 KB
testcase_03 AC 670 ms
70,468 KB
testcase_04 AC 299 ms
56,740 KB
testcase_05 AC 303 ms
56,828 KB
testcase_06 AC 298 ms
56,788 KB
testcase_07 AC 314 ms
56,680 KB
testcase_08 AC 368 ms
56,952 KB
testcase_09 AC 601 ms
68,428 KB
testcase_10 AC 1,936 ms
97,492 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
  val a = readLine()!!.toInt()

  (1..(a/3).toInt() ).map { n ->
    val nr = a - n
    (n..(nr/2).toInt() ).map { m ->
       println("$n $m ${a - n -m}")
    }
  }
}
0