結果

問題 No.487 2017 Calculation(2017の計算)
ユーザー 💕💖💞💕💖💞
提出日時 2017-06-24 19:10:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 306 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 10,058 ms
コンパイル使用メモリ 431,240 KB
実行使用メモリ 56,792 KB
最終ジャッジ日時 2024-04-30 14:44:18
合計ジャッジ時間 16,064 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 304 ms
56,680 KB
testcase_01 AC 302 ms
56,704 KB
testcase_02 AC 303 ms
56,652 KB
testcase_03 AC 301 ms
56,716 KB
testcase_04 AC 300 ms
56,676 KB
testcase_05 AC 300 ms
56,792 KB
testcase_06 AC 298 ms
56,708 KB
testcase_07 AC 296 ms
56,780 KB
testcase_08 AC 300 ms
56,708 KB
testcase_09 AC 301 ms
56,720 KB
testcase_10 AC 303 ms
56,788 KB
testcase_11 AC 302 ms
56,764 KB
testcase_12 AC 304 ms
56,728 KB
testcase_13 AC 302 ms
56,708 KB
testcase_14 AC 300 ms
56,648 KB
testcase_15 AC 306 ms
56,696 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