結果

問題 No.523 LED
ユーザー 💕💖💞💕💖💞
提出日時 2017-06-25 16:28:50
言語 Kotlin
(1.9.23)
結果
TLE  
実行時間 -
コード長 225 bytes
コンパイル時間 9,465 ms
コンパイル使用メモリ 427,100 KB
実行使用メモリ 94,760 KB
最終ジャッジ日時 2024-04-30 14:49:52
合計ジャッジ時間 14,850 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 252 ms
60,156 KB
testcase_01 AC 253 ms
94,760 KB
testcase_02 AC 298 ms
67,180 KB
testcase_03 AC 263 ms
56,700 KB
testcase_04 AC 260 ms
56,720 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) { 
          ^

ソースコード

diff #

fun main( args : Array<String> ) { 
  val c = 1000000007L
  val a = readLine()!!.toInt()
  val b = (1..a).map { x ->
    x.toLong()
  }.map { x ->
    x * (2 * x - 1) % c
  }.reduce { y, x ->
    y*x % c
  }
  println( b )
}
0