[mw_shl_code=c,true]#include <stdio.h>
#include <stdlib.h>
#define FOR(N) for(N=1;N<=6;N++)
int main()
{
int a,b,c,d,e,f;
FOR(a)
FOR(b)
FOR(c)
FOR(d)
FOR(e)
FOR(f)
if(a!=b && a!=c && a!=d && a!=e && a!=f &&
b!=c && b!=d && b!=e && b!=f &&
c!=d && c!=e && c!=f &&
d!=e && d!=f &&
e!=f)
if(a+b+d==a+c+f && a+b+d==d+e+f && a+c+f==d+e+f)
{
printf(" %d\n",a);
printf(" %d %d\n",b,c);
printf("%d %d %d\n",d,e,f);
}
system("pause");
return 0;
}
[/mw_shl_code] |