답안 #1006918

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1006918 2024-06-24T09:47:45 Z Nexus A Plus B (IOI23_aplusb) C++17
0 / 100
0 ms 348 KB
#include <bits/stdc++.h>
#include "aplusb.h"
#define ll long long

using namespace std;

const ll N=2e5+9,M=2e18+9,mod=998244353;

vector<int>smallest_sums(int n,vector<int>a,vector<int>b)
{
    ll x=n;
    vector<int>ans;
    for(ll i=0;i<n;++i)
    {
        for(ll j=0;j<n;++j)
        {
            if(!x || a[i]+b[j]>a[i+1]+b[0])break;
            --x,ans.push_back(a[i]+b[j]);
        }
        if(!x)break;
    }
    return ans;
}

# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB 1st lines differ - expected: 1 tokens, found 0 tokens
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB 1st lines differ - expected: 1 tokens, found 0 tokens
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB 1st lines differ - expected: 1 tokens, found 0 tokens
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB 1st lines differ - expected: 1 tokens, found 0 tokens
3 Halted 0 ms 0 KB -