URI Solution 1467 Zero or One - Solution in C++ | Ad Hoc
URI Online Judge Solution 1467 Zero or One| Ad Hoc
URI Main Problem Link - 1467 Zero or One https://www.urionlinejudge.com.br/judge/en/problems/view/1467
Problem Name: URI Problem 1467 Zero or One
Problem Number : URI Problem 1467 Zero or One Solution
Online Judge : URI Online Judge Solution
Level: Ad Hoc
Solution Language : C plus plus
URI Solution 1467 Zero or One Code in CPP:
#include <iostream> using namespace std; int main() { int a, b, c; while(cin >> a >> b >> c) { if(a == b && b == c){ cout << "*" << endl; } if(a != b && a != c && b == c){ cout << "A" << endl; } if(b != a && b != c && a == c){ cout << "B" << endl; } if(c != b && c != a && a == b){ cout << "C" << endl; } } return 0; }
No comments:
Write commentsTo know more about the problem, give us your valuable commment. We'll try to help you. Thanks