- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckMod.py
More file actions
Latest commit
29 lines (28 loc) · 539 Bytes
/
Copy pathcheckMod.py
File metadata and controls
29 lines (28 loc) · 539 Bytes
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
"""
ID:rshyam.1
LANG: PYTHON
TASK: RIDE
"""
importsys
defcheckMod(a,b):
a=a.lower()
b=b.lower()
aZ={"a":1,"b":2,"c":3,"d":4,"e":5,"f":6,"g":7,"h":8,"i":9,"j":10,"k":11,"l":12,"m":13,"n":14,"o":15,"p":16,"q":17,"r":18,"s":19,"t":20,"u":21,"v":22,"w":23,"x":24,"y":25,"z":26}
suma=1
sumb=1
forletterina:
suma*=int(aZ[letter])
printsuma
moda=suma%47
printmoda
forletterinb:
sumb*=int(aZ[letter])
printsumb
modb=sumb%47
printmodb
ifmodb==moda:
print"GO"
else:
print"STAY"
i,a,b=sys.argv;
checkMod(a,b)