Submission #3250351


Source Code Expand

Copy
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <set>
#include <map>
#include <algorithm>

using namespace std;


int main()
{
	int a,b,c;
	cin >> a >> b >> c;

	int ans = a + 10*b + c;
	ans = max(ans, a + b + 10*c);
	ans = max(ans, 10*a + b + c);

	cout << ans << endl;

	return 0;
}

Submission Info

Submission Time
Task A - Maximize the Formula
User suzyz
Language C++14 (GCC 5.4.1)
Score 100
Code Size 343 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name All Sample
Score / Max Score 100 / 100 0 / 0
Status
AC × 10
AC × 3
Set Name Test Cases
All sample_01, sample_02, sample_03, testcase1, testcase2, testcase3, testcase4, testcase5, testcase6, testcase7
Sample sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
sample_01 AC 1 ms 256 KB
sample_02 AC 1 ms 256 KB
sample_03 AC 1 ms 256 KB
testcase1 AC 1 ms 256 KB
testcase2 AC 1 ms 256 KB
testcase3 AC 1 ms 256 KB
testcase4 AC 1 ms 256 KB
testcase5 AC 1 ms 256 KB
testcase6 AC 1 ms 256 KB
testcase7 AC 1 ms 256 KB