제출 #1333444

#제출 시각아이디문제언어결과실행 시간메모리
1333444edga1Self Study (JOI22_ho_t2)C++20
10 / 100
43 ms2628 KiB
#include <bits/stdc++.h>

using namespace std;

#define FIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define pb push_back
#define fi first
#define se second

const int N = 2e5 + 5;
const ll MOD = 1e9 + 7;
const ll INF = 2e18;

int main(){
    FIO
    int n,m; cin>>n>>m;
    vector<int> a(n),b(n);
    int r=INF;
    for(int i=0; i<n; i++) cin>>a[i];
    for(int i=0; i<n; i++) cin>>b[i], r=min(r,max(a[i],b[i]));
    cout<<r<<'\n';
    return 0;
}

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

Main.cpp: In function 'int main()':
Main.cpp:19:11: warning: overflow in conversion from 'long long int' to 'int' changes value from '2000000000000000000' to '1321730048' [-Woverflow]
   19 |     int r=INF;
      |           ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...