Submission #00048


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<stdio.h>
int main(){
int card[100000];
int m,n,r;
int i,j;
int temp;
scanf("%d %d",&m,&n);
for(i=0;i<m;i++){
scanf("%d",&card[i]);
}
for(i=0;i<n;i++){
for(j=0;j<m-1-i;j++){
if(card[j]>card[j+1]){
temp=card[j];
card[j]=card[j+1];
card[j+1]=temp;
}
}
printf("%d\n",card[j]);
}
return(0);
}

ステータス

項目 データ
問題 0002 - お〜い お
ユーザー名 ei1630
投稿日時 2016-07-05 14:48:20
言語 C++11
状態 Accepted
得点 40
ソースコード長 370 Byte
最大実行時間 25 ms
最大メモリ使用量 1032 KB

セット

セット 得点 Cases
1 ALL 40 / 40 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 11 ms 476 KB
1
in2.txt AC 13 ms 704 KB
1
in3.txt AC 14 ms 552 KB
1
in4.txt AC 9 ms 668 KB
1
in5.txt AC 25 ms 1032 KB
1
in6.txt AC 11 ms 628 KB
1