Submission #4317394


Source Code Expand

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

Submission Info

Submission Time
Task A - B +/- A
User sk0
Language OCaml (4.02.3)
Score 100
Code Size 88 Byte
Status AC
Exec Time 1 ms
Memory 2432 KiB

Judge Result

Set Name All Sample
Score / Max Score 100 / 100 0 / 0
Status
AC × 11
AC × 3
Set Name Test Cases
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
Case Name Status Exec Time Memory
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