1
已解决
陶旭杰
中级光能
中级光能
http://judge.codingtang.com/problem/1246/
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a;
if(a%2==0||a%2==1)
{
b=a/2;
if(a%4==0)
{
c=a/4;
if(b==c)
cout<<"0"<<" "<<" ";
else
printf("%.d %.d",c,b);
}
else if(a%4==1||a%4==3)
{
c=(a/4)+(a%4)/2;
if(b==c)
cout<<'0'<<' '<<'0';
else
printf("%.d %.d",c,b);
}
else if(a%4==2)
{
c=(a/4)+1;
if(b==c)
cout<<'0'<<' '<<'0';
else
printf("%.d %.d",c,b);
}
}
return 0;
}