# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
541523 | 2022-03-23T17:55:25 Z | AmirElarbi | 최후의 만찬 (IOI12_supper) | C++14 | 0 ms | 0 KB |
#include <bits/stdc++.h> #define vi vector<int> #define ve vector #define ll long long #define vf vector<float> #define vll vector<pair<ll,ll>> #define ii pair<int,int> #define pll pair<ll,ll> #define vvi vector<vi> #define vii vector<ii> #define gii greater<ii> #define pb push_back #define mp make_pair #define fi first #define se second #define INF 2e9+5 #define eps 1e-7 #define eps1 1e-25 #define optimise ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define MAX_A 1e5+5 #define V 450 using namespace std; const int MOD = 1e9; const int nax = 1e5+5; #include "advisor.h" void ComputeAdvice(int *c, int n, int k, int m) { for (int i = 0; i < n; ++i) { for (int j = 0; j < 13; ++j) { if(c[i] & (int)(pow(2,j)) == (int)(pow(2,j))){ WriteAdvice(1); }else { WriteAdvice(0); } } } }