結果

問題 No.682 Average
ユーザー 💕💖💞💕💖💞
提出日時 2018-06-02 15:51:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 308 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 12,530 ms
コンパイル使用メモリ 436,956 KB
実行使用メモリ 57,100 KB
最終ジャッジ日時 2024-04-30 18:32:30
合計ジャッジ時間 16,237 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 298 ms
57,000 KB
testcase_01 AC 303 ms
56,976 KB
testcase_02 AC 306 ms
57,012 KB
testcase_03 AC 304 ms
56,976 KB
testcase_04 AC 302 ms
57,004 KB
testcase_05 AC 302 ms
56,960 KB
testcase_06 AC 305 ms
57,080 KB
testcase_07 AC 307 ms
56,960 KB
testcase_08 AC 304 ms
56,992 KB
testcase_09 AC 304 ms
57,100 KB
testcase_10 AC 301 ms
57,056 KB
testcase_11 AC 301 ms
57,012 KB
testcase_12 AC 308 ms
57,064 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
  val (a, b) = readLine()!!.split(" ").map(String::toInt)

  (a..b).mapNotNull {
    val m = (a+b+it).toDouble()/3
    //println(m)
    if( m == m.toInt().toDouble() ) true
    else null
  }.size.let(::println)
}
0