#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main( int argc, char** argv )
{
long long int a,b,c;
while(cin>>a>>b>>c)
if(a/10>=0&&c/2>=0&&a/10>=c/2)
{cout<<a<<" 個餅乾"<<","<<b+c/2<< " 盒巧克力"<<","<<c<<" 個蛋糕"<<"。"<<endl;}
else(a/10>=0&&c/2>=0&&a/10<=c/2);
{cout<<a<<" 個餅乾"<<","<<b+a/10<< " 盒巧克力"<<","<<c<<" 個蛋糕"<<"。"<<endl;}
return 0;
}
輸入 2147483647 2 2147483647的時候答案為2147483647 2 2147483647 跪求解答以及如何更改較適當