cfstep.com/codechef/problems/bgme/code

Preview meta tags from the cfstep.com website.

Linked Hostnames

3

Search Engine Appearance

Google

https://cfstep.com/codechef/problems/bgme/code

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

https://cfstep.com/codechef/problems/bgme/code

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

https://cfstep.com/codechef/problems/bgme/code

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
    • title
      Code : Bucket Game | CF Step
    • title
      Codeforces
    • title
      Open Navigation
    • title
      Close Navigation
    • title
      Youtube
  • Open Graph Meta Tags

    5
    • og:title
      Code : Bucket Game
    • og:site_name
      CF Step
    • og:description
      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 = !
    • og:type
      article
    • og:url
      https://cfstep.com/codechef/problems/bgme/code/
  • Twitter Meta Tags

    3
    • twitter:card
      summary
    • twitter:title
      Code : Bucket Game
    • twitter:description
      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 = !
  • Item Prop Meta Tags

    5
    • position
      1
    • position
      2
    • position
      3
    • position
      4
    • position
      5
  • Link Tags

    14
    • canonical
      https://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