| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1149775 | william889 | Room Temperature (JOI24_ho_t1) | C++20 | 1 ms | 328 KiB |
# include<bits/stdc++.h>
using namespace std;
int main(){
int n,t;
cin>>n>>t;
int a[n];
for(int i=0;i<n;i++) cin>>a[i];
sort(a,a+n);
int minx=(a[n-1]-a[0]+1)/2;
for(int i=0;i<n-1;i++){
minx=min(minx,(a[i]+t-a[i+1]+1)/2);
}
cout<<minx;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
