>>48
#define N 27
int a[N] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,900,619,630,630,940,945,999,1365,567,609,840,1470};
int x = 6999;

こんな感じでやってみました。