Submission #1162287

#TimeUsernameProblemLanguageResultExecution timeMemory
1162287tsengangDetecting Molecules (IOI16_molecules)C++20
9 / 100
0 ms328 KiB
#include <bits/stdc++.h>
#include "molecules.h"
using namespace std;
#define ll long long
#define ff first
#define ss second
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define ertunt return
const int mod = 998244353;
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
vector<int>find_subset(int l, int u, vector<int>w){
    sort(all(w));
    int n = w.size();
    int x = (l+w[0]-1)/w[0];
    if(x <= n and x*w[0] <= u){
        vector<int>ans(x);
        iota(all(ans),0);
        ertunt ans;
    }
    vector<int>c;
    ertunt c;
}

Compilation message (stderr)

molecules.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...