제출 #1243655

#제출 시각아이디문제언어결과실행 시간메모리
1243655nvc2k8Coins (IOI17_coins)C++20
100 / 100
9 ms704 KiB
#include <bits/stdc++.h> #include "coins.h" #define TASK "askdjasd" #define endl '\n' #define mp make_pair #define pb push_back #define fi first #define se second #define BIT(i,x) (((i)>>(x))&1) #define FOR(i,a,b) for(int i = (a); i<=(b); i++) #define FORD(i,a,b) for(int i = (a); i>=(b); i--) #define all(C) C.begin(), C.end() using namespace std; using ll = long long; using pii = pair<int,int>; const int INT_LIM = 2147483647; const ll LL_LIM = 9223372036854775807; template <typename X> bool minimize(X &x, const X &y) {if (x>y){x = y; return true;}return false;} template <typename X> bool maximize(X &x, const X &y) {if (x<y){x = y; return true;}return false;} ///------------------------------------------/// vector<int> coin_flips(vector<int> b, int c) { int xsum = 0; FOR(i, 0, 63) if (b[i]) xsum^=i; vector<int> ans; ans.pb(xsum^c); return ans; } int find_coin(vector<int> b) { int ans = 0; FOR(i, 0, 63) if (b[i]) ans^=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...