-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1050.cpp
49 lines (47 loc) · 864 Bytes
/
1050.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int phn;
while(1==scanf("%d",&phn))
{
if(phn==61)
{
printf("Brasilia\n");
}
else if(phn==71)
{
printf("Salvador\n");
}
else if(phn==11)
{
printf("Sao Paulo\n");
}
else if(phn==21)
{
printf("Rio de Janeiro\n");
}
else if(phn==32)
{
printf("Juiz de Fora\n");
}
else if(phn==19)
{
printf("Campinas\n");
}
else if(phn==27)
{
printf("Vitoria\n");
}
else if(phn==31)
{
printf("Belo Horizonte\n");
}
else
{
printf("DDD nao cadastrado\n");
}
}
return 0;
}