CodeChef submission 857909 (C) plaintext list. Status: WA, problem DAILY, contest COOK19. By amitsingh1991 (amitsingh1991), 2012-02-19 23:59:52.

#include<stdio.h> int main() { short int b[7][7],ans=0,m,n,i; short int c[60],sum,a[10]; b[6][1]=6;b[6][2]=15;b[6][3]=20;b[6][4]=15;b[6][5]=6;b[6][6]=1; b[5][1]=5;b[5][2]=10;b[5][3]=10;b[5][4]=5;b[5][5]=1;//b[6][1]=6; b[4][1]=4;b[4][2]=6;b[4][3]=4;b[4][4]=1;//b[6][1]=6;b[6][1]=6; b[3][1]=3;b[3][2]=3;b[3][3]=1;//b[6][1]=6;b[6][1]=6;b[6][1]=6; b[2][1]=2;b[2][2]=1;//b[6][1]=6;b[6][1]=6;b[6][1]=6;b[6][1]=6; b[1][1]=1;//b[6][1]=6;b[6][1]=6;b[6][1]=6;b[6][1]=6;b[6][1]=6; ans=0; // a=b[m]; for(i=1;i<=10;i++) {if(i>n) break; for(i=1;i<55;i++) //st=33; for(i=1;i<=9;i++) { a[1]=4*i-3; a[2]=4*i-2; a[3]=4*i-1; a[4]=4*i; a[5]=55-2*i; a[6]=56-2*i; sum=0; for(i=1;i<=6;i++) sum+=a[i]; if(sum>m) ans+=b[sum][m]; } } }//getch(); return 0; }

## Comments

**Please login at the top to post a comment.**