-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapOfIndia.java
67 lines (34 loc) · 1.01 KB
/
MapOfIndia.java
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import java.util.*;
class MapOfIndia
{
public static void main(String[] args) throws Exception
{
String ob="TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAUFAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WHq!WFs XDt!";
int x = 10, y = 0, z = 10;
x = ob.charAt(y);
while (x != 0)
{
if (y < 170)
{
x = ob.charAt(y);
y++;
while(x > 64)
{
x--;
if(++z == 'Z')
{
z /= 9;
System.out.print((char)(z));
}
else
System.out.print((char)(33 ^ (y & 0x01)));
}
}
else
{
break;
}
}
System.out.println("\n");
}
}