← Back to List

2480번: 주사위 세개 ↗

Solutions

C++14
311 B | 311 chars
#include <iostream>
#include <algorithm>
using namespace std;
int A,B,C;
int main()
{
	cin>>A>>B>>C;
	if(A==B&&B==C)
	{
		cout<<10000+A*1000;
	}
	else if(A==B)
	{
		cout<<1000+A*100;
	}
	else if(C==B)
	{
		cout<<1000+B*100;
	}
	else if(A==C)
	{
		cout<<1000+A*100;
	}
	else 
	{
		cout<<100*max(A,max(B,C));
	}
}