답안 #1053814

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1053814 2024-08-11T17:57:43 Z Alebn Self Study (JOI22_ho_t2) C++14
10 / 100
129 ms 9056 KB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    vector<int> a(n), b(n);
    int res = INT_MAX;
    for(int i = 0; i < n; i++) cin >> a[i];
    for(int i = 0; i < n; i++) {
        cin >> b[i];
        res = min(res, m * max(a[i], b[i]));
    }
    cout << res << "\n";
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 2 ms 348 KB Output is correct
11 Correct 115 ms 2648 KB Output is correct
12 Correct 120 ms 2652 KB Output is correct
13 Correct 82 ms 2652 KB Output is correct
14 Correct 96 ms 2652 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 39 ms 3920 KB Output is correct
17 Correct 129 ms 9056 KB Output is correct
18 Correct 119 ms 8388 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 39 ms 3920 KB Output is correct
3 Correct 129 ms 9056 KB Output is correct
4 Correct 119 ms 8388 KB Output is correct
5 Incorrect 0 ms 348 KB Output isn't correct
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 2 ms 348 KB Output is correct
11 Correct 115 ms 2648 KB Output is correct
12 Correct 120 ms 2652 KB Output is correct
13 Correct 82 ms 2652 KB Output is correct
14 Correct 96 ms 2652 KB Output is correct
15 Incorrect 0 ms 348 KB Output isn't correct
16 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 2 ms 348 KB Output is correct
11 Correct 115 ms 2648 KB Output is correct
12 Correct 120 ms 2652 KB Output is correct
13 Correct 82 ms 2652 KB Output is correct
14 Correct 96 ms 2652 KB Output is correct
15 Incorrect 0 ms 348 KB Output isn't correct
16 Halted 0 ms 0 KB -