結果
問題 |
No.523 LED
|
ユーザー |
![]() |
提出日時 | 2017-06-25 16:28:50 |
言語 | Kotlin (2.1.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 11,023 ms |
コンパイル使用メモリ | 424,892 KB |
実行使用メモリ | 377,280 KB |
最終ジャッジ日時 | 2024-11-20 10:29:23 |
合計ジャッジ時間 | 34,876 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 RE * 2 TLE * 3 |
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used fun main( args : Array<String> ) { ^
ソースコード
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 ) }