結果

問題 No.523 LED
ユーザー 💕💖💞💕💖💞
提出日時 2017-06-25 16:35:05
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 916 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 10,941 ms
コンパイル使用メモリ 430,004 KB
実行使用メモリ 172,232 KB
最終ジャッジ日時 2024-04-30 14:50:24
合計ジャッジ時間 22,933 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 307 ms
56,732 KB
testcase_01 AC 310 ms
56,832 KB
testcase_02 AC 344 ms
56,628 KB
testcase_03 AC 312 ms
56,708 KB
testcase_04 AC 312 ms
56,816 KB
testcase_05 AC 915 ms
172,232 KB
testcase_06 AC 313 ms
56,684 KB
testcase_07 AC 315 ms
56,732 KB
testcase_08 AC 309 ms
56,688 KB
testcase_09 AC 321 ms
56,660 KB
testcase_10 AC 306 ms
56,720 KB
testcase_11 AC 305 ms
56,680 KB
testcase_12 AC 310 ms
56,716 KB
testcase_13 AC 408 ms
85,696 KB
testcase_14 AC 310 ms
56,696 KB
testcase_15 AC 308 ms
56,776 KB
testcase_16 AC 307 ms
56,728 KB
testcase_17 AC 323 ms
56,732 KB
testcase_18 AC 916 ms
172,148 KB
testcase_19 AC 474 ms
85,540 KB
testcase_20 AC 456 ms
85,812 KB
testcase_21 AC 662 ms
141,056 KB
testcase_22 AC 695 ms
140,956 KB
testcase_23 AC 686 ms
141,056 KB
testcase_24 AC 328 ms
58,984 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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()
  var b = 1L 
  (1..a).map { x ->
    b = b * x % c
    b = (b * (2 * x - 1)) % c
  }
  println( b )
}
0