AcWing 671. DDD
原题链接
简单
作者:
晓宇.
,
2024-04-16 17:45:18
,
所有人可见
,
阅读 1
C++ 代码
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin >> a;
if(a==61) cout<<"Brasilia"<<endl;
else if(a==71) cout<<"Salvador"<<endl;
else if(a==11) cout<<"Sao paulo"<<endl;
else if(a==21) cout<<"Rio de Janeiro"<<endl;
else if(a==32) cout<<"Juiz de Fora"<<endl;
else if(a==19) cout<<"Campinas"<<endl;
else if(a==27) cout<<"Vitoria"<<endl;
else if(a==31) cout<<"Belo Horizonte"<<endl;
else cout<<"DDD nao cadastrado";
return 0;
}