Submission #4279404


Source Code Expand

Copy
A, B = map(int, input().split())

if B % A == 0:
    print(A+B)
else:
    print(B-A)

Submission Info

Submission Time
Task A - B +/- A
User showyou41
Language Python3 (3.4.3)
Score 100
Code Size 89 Byte
Status
Exec Time 17 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 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 0 / 0 sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
0_normal_1 17 ms 2940 KB
0_normal_2 17 ms 2940 KB
0_normal_3 17 ms 2940 KB
0_normal_4 17 ms 2940 KB
1_hand_1 17 ms 2940 KB
1_hand_2 17 ms 2940 KB
1_hand_3 17 ms 2940 KB
1_hand_4 17 ms 2940 KB
sample_01 17 ms 2940 KB
sample_02 17 ms 2940 KB
sample_03 17 ms 2940 KB