Submission #00087


ソースコード

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
27
28
29
30
31
32
33
#include<stdio.h>
int main(){
int a,b=2,c[256],d=0,e,f,g;
scanf("%d",&a);
while(a!=1){
while(e!=0){
if(a%b==0){
a=a/b;
c[d]=b;
e=0;
}
b++;
}
d++;
e=1;
b=2;
}
for(e=0;e<d;e++){
for(f=1;f<d;f++){
if(c[f]<c[f-1]){
g=c[f];
c[f]=c[f-1];
c[f-1]=g;
}
}
}
for(e=0;e<d;e++){
printf("%d ",c[e]);
}
printf("\n");
return(0);
}

ステータス

項目 データ
問題 0004 - 東雲なのの憂鬱
ユーザー名 e1613
投稿日時 2016-07-05 15:55:39
言語 C++11
状態 Wrong Answer
得点 0
ソースコード長 443 Byte
最大実行時間 14 ms
最大メモリ使用量 684 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01.txt WA 13 ms 472 KB
1
input02.txt WA 11 ms 456 KB
1
input03.txt WA 13 ms 568 KB
1
input04.txt WA 14 ms 684 KB
1
input05.txt WA 11 ms 544 KB
1