第六屆藍橋杯九數分組

九數組分數 1,2,3...9 這九個數字組成一個分數,其值剛好爲1/3,如何組法? #include <stdio.h> void test(int x[]) { int a = x[0]*1000 + x[1]*100 + x[2]*10 + x[3]; int b = x[4]*10000 + x[5]*1000 + x[6]*100 + x[7]*10 + x[8]; if(a
相關文章
相關標籤/搜索