제출 #798116

#제출 시각아이디문제언어결과실행 시간메모리
798116hgmhcCoins (IOI17_coins)C++17
0 / 100
7 ms1208 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; using ii = pair<int,int>; using ll = long long; using vi = vector<int>; #define rep(i,a,b) for (auto i = (a); i <= (b); ++i) #define per(i,a,b) for (auto i = (b); i >= (a); --i) #define all(x) begin(x), end(x) #define siz(x) int((x).size()) #define Mup(x,y) x = max(x,y) #define mup(x,y) x = min(x,y) #define fi first #define se second #define dbg(...) fprintf(stderr,__VA_ARGS__) vi coin_flips(vi b, int c) { vi flips; rep(i,0,siz(b)-1) { if (b[i] ^ (i == c)) { flips.push_back(i); } } if (empty(flips)) { flips.push_back(1); flips.push_back(1); } return b; } int find_coin(vi b) { rep(i,0,siz(b)-1) { if (b[i]) return i; } assert(0); }
#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...