| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1364192 | kmath628 | 버블 정렬 (OJUZ10_bubblesort) | C++20 | 1095 ms | 816 KiB |
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,k,i;
scanf("%d %d",&n,&k);
vector<int> a(n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
while(k--){
for(i=0;i<n-1;i++)
if(a[i]>a[i+1]) swap(a[i],a[i+1]);
}
for(i=0;i<n;i++) printf("%d ",a[i]);
printf("\n");
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
