在文件 acwing.cpp 第 1005 行定义.
1007 const string output[] = {
"[0,25]",
"(25,50]",
"(50,75]",
"(75,100]"};
1009 if(x < 0.0 || x > 100.0) {
1010 cout <<
"Fora de intervalo";
1011 }
else if(x > 75.0) {
1012 cout <<
"Intervalo " << output[3];
1013 }
else if(x > 50.0) {
1014 cout <<
"Intervalo " << output[2];
1015 }
else if(x > 25.0) {
1016 cout <<
"Intervalo " << output[1];
1018 cout <<
"Intervalo " << output[0];
被这些函数引用 acwing::TEST().