Submission #00365


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>
int main()
{
int n, cnt, wan, c;
int ais[10]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
while( 1 ) {
scanf("%d", &n);
if( n == 0 )
return 0;
for( cnt=0; cnt<n; cnt++ ) {
scanf("%d", &wan);
ais[wan]++;
}
for( cnt=0; cnt<10; cnt++ ) {
for( c=0; c<ais[cnt]; c++ )
printf("*");
if( ais[cnt] <= 0 )
printf("-");
printf("\n");
}
}
return 0;
}

ステータス

項目 データ
問題 0004 - 人気のアイスクリーム店
ユーザー名 sth1515
投稿日時 2016-08-29 11:50:35
言語 C
状態 Wrong Answer
得点 0
ソースコード長 418 Byte
最大実行時間 18 ms
最大メモリ使用量 380 KB

セット

セット 得点 Cases
1 ALL 0 / 4 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
00.in WA 18 ms 380 KB
1
01.in WA 17 ms 280 KB
1