# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
784947 | oscar1f | Council (JOI23_council) | C++17 | 4088 ms | 64848 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
const int MAX_PERS=300*1000+5,MAX_PROP=22,MAX_VAL=(1<<20);
int nbPers,nbChoix,rep,val,gratuit,r1,r2;
int choix[MAX_PERS][MAX_PROP];
int somme[MAX_PROP];
vector<int> nbOccu[MAX_VAL];
int val1[MAX_VAL];
int memo[MAX_VAL];
int rest1[MAX_VAL],rest2[MAX_VAL];
int compte1(int nb) {
int nb1=0;
while (nb>0) {
nb1+=nb%2;
nb/=2;
}
return nb1;
}
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin>>nbPers>>nbChoix;
for (int i=0;i<nbPers;i++) {
for (int j=0;j<nbChoix;j++) {
cin>>choix[i][j];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |