Skip to content

Instantly share code, notes, and snippets.

@ascchrvalstr
ascchrvalstr / parse tree.cpp
Created September 30, 2016 11:56
Solution to Parse Tree (Codeforces Gym 100357K)
#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
string s;
int priority(char c)
{
if (c=='+'||c=='-')