cfstep.com/codechef/problems/bgme/code
Preview meta tags from the cfstep.com website.
Linked Hostnames
3Search Engine Appearance
Code : Bucket Game
Submission #include <bits/stdc++.h> using namespace std; #define endl "\n" void solve(vector<int> &a) { int n = a.size(); sort(a.begin(), a.end()); int alice = 0, bob = 0, alice_has_turn = true; int even_cnt = 0; for (int i = 0; i < n; i++) { if (a[i] % 2 == 0) { even_cnt++; } else { if (alice_has_turn) { if (a[i] == 1) { alice++; } else { even_cnt++; } } else { if (a[i] == 1) { bob++; } else { even_cnt++; } } alice_has_turn = !
Bing
Code : Bucket Game
Submission #include <bits/stdc++.h> using namespace std; #define endl "\n" void solve(vector<int> &a) { int n = a.size(); sort(a.begin(), a.end()); int alice = 0, bob = 0, alice_has_turn = true; int even_cnt = 0; for (int i = 0; i < n; i++) { if (a[i] % 2 == 0) { even_cnt++; } else { if (alice_has_turn) { if (a[i] == 1) { alice++; } else { even_cnt++; } } else { if (a[i] == 1) { bob++; } else { even_cnt++; } } alice_has_turn = !
DuckDuckGo
Code : Bucket Game
Submission #include <bits/stdc++.h> using namespace std; #define endl "\n" void solve(vector<int> &a) { int n = a.size(); sort(a.begin(), a.end()); int alice = 0, bob = 0, alice_has_turn = true; int even_cnt = 0; for (int i = 0; i < n; i++) { if (a[i] % 2 == 0) { even_cnt++; } else { if (alice_has_turn) { if (a[i] == 1) { alice++; } else { even_cnt++; } } else { if (a[i] == 1) { bob++; } else { even_cnt++; } } alice_has_turn = !
General Meta Tags
21- titleCode : Bucket Game | CF Step
- titleCodeforces
- titleOpen Navigation
- titleClose Navigation
- titleYoutube
Open Graph Meta Tags
5- og:titleCode : Bucket Game
- og:site_nameCF Step
- og:descriptionSubmission #include <bits/stdc++.h> using namespace std; #define endl "\n" void solve(vector<int> &a) { int n = a.size(); sort(a.begin(), a.end()); int alice = 0, bob = 0, alice_has_turn = true; int even_cnt = 0; for (int i = 0; i < n; i++) { if (a[i] % 2 == 0) { even_cnt++; } else { if (alice_has_turn) { if (a[i] == 1) { alice++; } else { even_cnt++; } } else { if (a[i] == 1) { bob++; } else { even_cnt++; } } alice_has_turn = !
- og:typearticle
- og:urlhttps://cfstep.com/codechef/problems/bgme/code/
Twitter Meta Tags
3- twitter:cardsummary
- twitter:titleCode : Bucket Game
- twitter:descriptionSubmission #include <bits/stdc++.h> using namespace std; #define endl "\n" void solve(vector<int> &a) { int n = a.size(); sort(a.begin(), a.end()); int alice = 0, bob = 0, alice_has_turn = true; int even_cnt = 0; for (int i = 0; i < n; i++) { if (a[i] % 2 == 0) { even_cnt++; } else { if (alice_has_turn) { if (a[i] == 1) { alice++; } else { even_cnt++; } } else { if (a[i] == 1) { bob++; } else { even_cnt++; } } alice_has_turn = !
Item Prop Meta Tags
5- position1
- position2
- position3
- position4
- position5
Link Tags
14- canonicalhttps://cfstep.com/codechef/problems/bgme/code/
- icon/favicon/favicon.svg
- icon/favicon/favicon-32x32.png
- icon/favicon/favicon-16x16.png
- preload/fonts/Metropolis.woff2
Links
8- https://cfstep.com
- https://cfstep.com/atcoder/contests
- https://cfstep.com/codechef
- https://cfstep.com/codechef/problems
- https://cfstep.com/codechef/problems/bgme