結果

問題 No.780 オフ会
ユーザー Hayato-KokubuHayato-Kokubu
提出日時 2019-01-20 16:21:35
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 969 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 8,568 ms
コンパイル使用メモリ 228,280 KB
実行使用メモリ 62,840 KB
最終ジャッジ日時 2023-09-14 02:23:49
合計ジャッジ時間 31,387 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 854 ms
62,780 KB
testcase_01 AC 969 ms
62,840 KB
testcase_02 AC 966 ms
62,364 KB
testcase_03 AC 812 ms
62,472 KB
testcase_04 AC 815 ms
62,384 KB
testcase_05 AC 816 ms
62,408 KB
testcase_06 AC 840 ms
62,436 KB
testcase_07 AC 822 ms
62,648 KB
testcase_08 AC 804 ms
62,484 KB
testcase_09 AC 832 ms
62,432 KB
testcase_10 AC 812 ms
62,424 KB
testcase_11 AC 817 ms
62,536 KB
testcase_12 AC 796 ms
62,640 KB
testcase_13 AC 802 ms
62,632 KB
testcase_14 AC 814 ms
62,580 KB
testcase_15 AC 831 ms
62,396 KB
testcase_16 AC 789 ms
62,632 KB
testcase_17 AC 812 ms
62,380 KB
testcase_18 AC 879 ms
62,444 KB
testcase_19 AC 806 ms
62,464 KB
testcase_20 AC 832 ms
62,416 KB
testcase_21 AC 847 ms
62,396 KB
testcase_22 AC 809 ms
62,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Yuki780 {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit ={
    val a = sc.nextInt
    val b = sc.nextInt

    println(if(b - (a + 1) >= 0) "YES" else "NO")
    println(Math.abs(b - (a + 1)))

  }

}
0