제출 #1141450

#제출 시각아이디문제언어결과실행 시간메모리
1141450MaaxleCoins (IOI17_coins)C++20
0 / 100
5 ms584 KiB
#include "coins.h" #include <bits/stdc++.h> #define range(it, a, b) for (ll it = a; it < b; it++) #define invr(it, a, b) for (ll it = a; it >= b; it--) #define all(x) begin(x), end(x) #define ll long long #define ull unsigned long long #define ld long double #define INF64 ((ll) 1 << 62) #define INF32 (1 << 30) #define mset multiset #define uset unordered_set #define umap unordered_map #define pqueue priority_queue #define ptr(A) shared_ptr<A> #define v(x) vector<x> using namespace std; v(int) coin_flips (v(int) b, int c) { v(int) ans; range(i, 0, 6) { int a = ((c & (1 << i)) > 0); if (a != b[i]) ans.push_back(i); } if (ans.empty()) ans.push_back(63); return ans; } int find_coin(v(int) b) { int c = 0; range(i, 0, 6) c |= (b[i] << i); cout << c << '\n'; return c; }
#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...