题目描述
其他都没问题,不通过可能是字母打错了,再多检查几遍
样例
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int DDD;
scanf("%d",&DDD);
switch (DDD)
{
case 61:
printf("Brasilia");
break;
case 71:
printf("Salvador");
break;
case 11:
printf("Sao Paulo");
break;
case 21:
printf("Rio de Janeiro");
break;
case 32:
printf("Juiz de Fora");
break;
case 19:
printf("Campinas");
break;
case 27:
printf("Vitoria");
break;
case 31:
printf("Belo Horizonte");
break;
default:
printf("DDD nao cadastrado");
break;
}
return 0;
}