fenbu[fenshu[a]/10]++; 该è¯å¥å®é
ä¸æ¯ç»è®¡æ¯10åç¸éçåæ°æ®µç人æ°ï¼fenshu[a]ä¸æ¯æ¯æ¬¡è¾å
¥çå¦ççåæ°ï¼fenshu[a]/10以åå°±åæçè¿ä¸ªåæ°æå¨çåæ°æ®µï¼â/âæ¯æ´é¤è¿ç®ç¬¦ï¼ä¸¤ä¸ªæ´æ°æ´é¤çç»æè¿æ¯åæ´æ°ï¼ä¾å¦ï¼fenshu[a]=84ï¼åfenshu[a]/10=8ï¼fenshu[a]=89ï¼åfenshu[a]/10=8ï¼fenshu[a]=91ï¼åfenshu[a]/10=9ï¼fenshu[a]=78ï¼åfenshu[a]/10=7.ä¹å°±æ¯è¯´åæ°å¨70ï½79ä¹é´çfenshu[a]/10=7ï¼åæ°å¨80ï½89ä¹é´çfenshu[a]/10=8ï¼åå¦fenshu[a]/10=7ï¼åfenbu[fenshu[a]/10]++表示fenbu[7]++; åå¦fenshu[a]/10=8ï¼åfenbu[fenshu[a]/10]++表示fenbu[8]++;è¿æ ·å°±å¯ä»¥ç»è®¡æ¯10段å
ç人æ°ã
åå¦fenshu[]={79,88,85,90,93,76,100,50,96}, åfenbu[11]={0,0,0,0,0,1,0,2,2,3,1}.
追çfenbu[10]éä¿åçæ¯åæ°ä¸º100çå¦çç人æ°ï¼è¿æ®µç¨åºæ¯è¡¨ç¤ºæ绩为100åç人æ°åå¸ãç±äº100åæ¯ä¸ä¸ªç¹ï¼ä¸ååè¾¹æ¯æ¯10å为ä¸ä¸ªæ®µï¼æ以è¦åç¬è¾åºã