Google Code Jam 2010 Qualification Round 2012 Problem B && C
B题当p=0时所有的总分都在sum1++,当p=1时,总分>=1时在sum1++,总分==0,是无论如何都满足不了题意(坑点);总分>=29时是没有surprising情况的,无论p取何值都在sum1++;#include
#include
usingnamespacestd;
intmain(){
intn,i,j,T,t,s,p,a;
charch;
freopen("B-large.in",