結果

問題 No.1128 Wedding Ceremony
ユーザー 👑 yumechiyumechi
提出日時 2021-02-23 23:19:09
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,018 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 9,567 ms
コンパイル使用メモリ 245,736 KB
実行使用メモリ 65,316 KB
最終ジャッジ日時 2023-10-24 00:48:19
合計ジャッジ時間 33,552 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 942 ms
65,256 KB
testcase_01 AC 949 ms
65,300 KB
testcase_02 AC 941 ms
65,292 KB
testcase_03 AC 936 ms
65,288 KB
testcase_04 AC 929 ms
65,292 KB
testcase_05 AC 929 ms
65,220 KB
testcase_06 AC 941 ms
65,312 KB
testcase_07 AC 938 ms
65,300 KB
testcase_08 AC 925 ms
65,300 KB
testcase_09 AC 927 ms
65,300 KB
testcase_10 AC 943 ms
65,276 KB
testcase_11 AC 932 ms
65,308 KB
testcase_12 AC 942 ms
65,276 KB
testcase_13 AC 942 ms
65,316 KB
testcase_14 AC 942 ms
65,264 KB
testcase_15 AC 945 ms
65,280 KB
testcase_16 AC 1,018 ms
65,300 KB
testcase_17 AC 937 ms
65,288 KB
testcase_18 AC 938 ms
65,216 KB
testcase_19 AC 941 ms
65,276 KB
testcase_20 AC 992 ms
65,296 KB
testcase_21 AC 943 ms
65,300 KB
testcase_22 AC 935 ms
65,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  println(if (n % 2 == 0) n + 1 else n)
}
0