K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
int tnt = 0, cnt = 0; while (1) { int score; cin >> score; if (score == -1) break; tnt += score; cnt += 1; } cout << tnt / cnt;