题目描述
blablabla
样例
#include<iostream>
using namespace std;
int main() {
int x;
cin >> x;
switch (x) {
case 61: {
cout << "Brasilia";
break;
}
case 71: {
cout << "Salvador";
break;
}
case 11: {
cout << "Sao Paulo";
break;
}
case 21: {
cout << "Rio de Janeiro";
break;
}
case 32: {
cout << "Juiz de Fora";
break;
}
case 19: {
cout << "Campinas";
break;
}
case 27: {
cout << "Vitoria";
break;
}
case 31: {
cout << "Belo Horizonte";
break;
}
default:cout << "DDD nao cadastrado";
}
return 0;
}
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla