英文 corner case 通常翻译为极端案例或边角案例,通常指正常范围以外的问题或者情形。在如下 C++ 代码中,变量都是整型,则 corner case 最应该是( )。
int tnt = 0, cnt = 0;
while (1) {
int score;
cin >> score;
if (score == -1)
break;
tnt += score;
cnt += 1;
}
cout << tnt / cnt;
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析