category : その他

Advent of Code 2015

http://adventofcode.com/ やります.Part Twoは別記事で. Day 1++ か -- するだけ. 12345678910int main() { string s; cin >>s; int f = 0; for(char c : s){ if(c == '(') f++; else f--; } cou