1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| #include <stdio.h> int main(){ int d; scanf ( "%d" , &d); if (d == 61) printf ( "Brasilia\n" ); else if (d == 71) printf ( "Salvador\n" ); else if (d == 11) printf ( "Sao Paulo\n" ); else if (d == 21) printf ( "Rio de Janeiro\n" ); else if (d == 32) printf ( "Juiz de Fora\n" ); else if (d == 19) printf ( "Campinas\n" ); else if (d == 27) printf ( "Vitoria\n" ); else if (d == 31) printf ( "Belo Horizonte\n" ); else printf ( "DDD nao cadastrado\n" ); } |
Thursday, January 28, 2016
URI 1050 - DDD
Labels:
URI Solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)