[解題報告][ZeroJudge][d587] 參貳壹真好吃 七月 12, 2010 程式碼, ZeroJudge 本文总阅读量次 123456789101112131415161718/*Problem: d587Language: C++Result: AC (6ms, 688KB) on ZeroJudgeAuthor: m80126colin at 2010-07-12 19:53:18Solution: Radix Sort*/#include <iostream>using namespace std;int n,a[4],i,j;int main() { scanf("%d",&n); for (i=1;i<=n;i++) scanf("%d",&j),a[j]++; for (i=1;i<=3;i++) for (j=1;j<=a[i];j++) putchar(i+'0'),putchar(32); puts("");} Newer 二十字微小說 Older [解題報告][ZeroJudge][d586] 哈密瓜美語