USACO Bronze 2018 Open - Team Tic Tac Toe

Authors: Jesse Choe, Kevin Sheng, Benjamin Qi

Problem Statement

Solution 1

Official Analysis

Solution 2 - Using Sets

C++

#include <bits/stdc++.h> // may the c++ gods forgive me
using namespace std;
constexpr int WIDTH = 3;
vector<string> board(WIDTH);
set<set<char>> winners[WIDTH + 1];
void insert(vector<pair<int, int>> coordinates) {

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!