#include<stdio.h> main() { int t,sum=0; while(scanf("%d",&t)!=0) { if(t==-1) break; sum=sum+t; } printf("%d\n",sum); }
博客园 © 2004-2026 浙公网安备 33010602011771号 浙ICP备2021040463号-3