Submission #240226

#TimeUsernameProblemLanguageResultExecution timeMemory
240226Dremix10Detecting Molecules (IOI16_molecules)C++17
9 / 100
5 ms384 KiB
#include "molecules.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; #define F first #define S second #define endl '\n' #define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define maxp 22 #define EPS (ld)(1e-18) #define mod (int)(1e9+7) #define N (int)(1e5+1) vector<int> find_subset(int l, int r, vector<int> arr) { int n=arr.size(); int i; int num=arr[0]; int low = l/num; if(l%num) low++; int val=low*num; if(low>n || val>r || val<l) return vector<int>(0); vector<int> ans; for(i=0;i<low;i++) ans.push_back(i); return ans; }
#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...