提出 #4317394


ソースコード 拡げる

Scanf.scanf " %d %d" @@ fun a b ->
  print_int @@
    if b mod a = 0 then a+b else b-a

提出情報

提出日時
問題 A - B +/- A
ユーザ sk0
言語 OCaml (4.02.3)
得点 100
コード長 88 Byte
結果 AC
実行時間 1 ms
メモリ 2432 KiB

ジャッジ結果

セット名 All Sample
得点 / 配点 100 / 100 0 / 0
結果
AC × 11
AC × 3
セット名 テストケース
All 0_normal_1, 0_normal_2, 0_normal_3, 0_normal_4, 1_hand_1, 1_hand_2, 1_hand_3, 1_hand_4, sample_01, sample_02, sample_03
Sample sample_01, sample_02, sample_03
ケース名 結果 実行時間 メモリ
0_normal_1 AC 1 ms 384 KiB
0_normal_2 AC 1 ms 384 KiB
0_normal_3 AC 1 ms 384 KiB
0_normal_4 AC 1 ms 384 KiB
1_hand_1 AC 1 ms 384 KiB
1_hand_2 AC 1 ms 384 KiB
1_hand_3 AC 1 ms 384 KiB
1_hand_4 AC 1 ms 384 KiB
sample_01 AC 1 ms 384 KiB
sample_02 AC 1 ms 2432 KiB
sample_03 AC 1 ms 384 KiB