제출 #1316083

#제출 시각아이디문제언어결과실행 시간메모리
1316083ttamxArt Exhibition (JOI18_art)C11
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>

using namespace std;

using ll = long long;

const int N=5e5+5;

int n;
pair<ll,ll> a[N];
ll ans=0;

int main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    cin >> n;
    for(int i=1;i<=n;i++){
        cin >> a[i].first >> a[i].second;
    }
    sort(a+1,a+n+1);
    for(int i=1;i<=n;i++){
        ll sum=0;
        for(int j=i;j<=n;j++){
            sum+=a[j].second;
            ans=max(ans,sum-(a[j].first-a[i].first));
        }
    }
    cout << ans << "\n";
}

컴파일 시 표준 에러 (stderr) 메시지

art.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.