2333333终于有一天想起了被压代码支配的恐惧

P2669 [NOIP2015 普及组] 金币

mc205610760 @ 2016-10-12 20:15:00

#include <cstdio>

int ans,t=1,j,k,n;

int main(){while(n?--k||0&printf("%d",ans):n=scanf("%d",&k))ans+=++j==t?j=0,t++:t;}


by NOIPXX @ 2016-11-08 21:46:28

垃圾


by aloo_98 @ 2017-01-20 19:21:57

233333


|