mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
1c7c39b791
4200-4299
16 lines
300 B
C++
16 lines
300 B
C++
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <algorithm>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int a[4],cas = 1;
|
|
int x,y,ans;
|
|
while(~scanf("%d%d%d%d",&a[0],&a[1],&a[2],&a[3]))
|
|
{
|
|
sort(a,a+4);
|
|
printf("Case %d: %d\n",cas++,a[2]+a[3]);
|
|
}
|
|
return 0;
|
|
}
|