結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー 💕💖💞💕💖💞
提出日時 2017-06-24 19:10:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 295 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 13,700 ms
コンパイル使用メモリ 419,156 KB
実行使用メモリ 52,808 KB
最終ジャッジ日時 2023-08-12 19:39:14
合計ジャッジ時間 17,663 ms
ジャッジサーバーID
(参考情報)
judge7 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 280 ms
52,456 KB
testcase_01 AC 281 ms
52,740 KB
testcase_02 AC 295 ms
52,676 KB
testcase_03 AC 291 ms
52,424 KB
testcase_04 AC 286 ms
52,424 KB
testcase_05 AC 285 ms
52,592 KB
testcase_06 AC 282 ms
52,780 KB
testcase_07 AC 292 ms
52,800 KB
testcase_08 AC 284 ms
52,484 KB
testcase_09 AC 286 ms
52,556 KB
testcase_10 AC 286 ms
52,536 KB
testcase_11 AC 288 ms
52,680 KB
testcase_12 AC 287 ms
52,808 KB
testcase_13 AC 283 ms
52,600 KB
testcase_14 AC 289 ms
52,772 KB
testcase_15 AC 291 ms
52,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args : Array<String> ) {
         ^

ソースコード

diff #

fun main(args : Array<String> ) {
  val b  = 2017L
  var m  = readLine()!!.toLong()
  var c  = 1L
  (1..2017*2).map {
    c = c * 2017L % m
  }
  println( (b + c)%m )
}
0