Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.

book
Identify the Distinct Number

Given three digits a, b, c, where two of them are equal and one is different, return the value that occurs exactly once.

Example 1

Input:

a = 1; b = 2; c = 2

Output:

1

Example 2

Input:

a = 4; b = 3; c = 4

Output:

3
main.cpp

main.cpp

C++

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt