QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#319739 | #2908. Double Password | Pranav624 | AC ✓ | 11ms | 9940kb | Python3 | 167b | 2024-02-03 06:26:01 | 2024-02-03 06:26:01 |
Judging History
answer
passOne = input()
passTwo = input()
different = 0
for i in range(len(passOne)):
if passOne[i] != passTwo[i]:
different += 1
print(2 ** different)
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 6ms
memory: 9684kb
input:
1111 1234
output:
8
result:
ok single line: '8'
Test #2:
score: 0
Accepted
time: 11ms
memory: 9804kb
input:
0000 9999
output:
16
result:
ok single line: '16'
Test #3:
score: 0
Accepted
time: 10ms
memory: 9836kb
input:
3214 3224
output:
2
result:
ok single line: '2'
Test #4:
score: 0
Accepted
time: 10ms
memory: 9756kb
input:
2718 2718
output:
1
result:
ok single line: '1'
Test #5:
score: 0
Accepted
time: 9ms
memory: 9756kb
input:
9920 2484
output:
16
result:
ok single line: '16'
Test #6:
score: 0
Accepted
time: 5ms
memory: 9900kb
input:
4803 5218
output:
16
result:
ok single line: '16'
Test #7:
score: 0
Accepted
time: 11ms
memory: 9776kb
input:
1422 7464
output:
8
result:
ok single line: '8'
Test #8:
score: 0
Accepted
time: 5ms
memory: 9836kb
input:
0845 0827
output:
4
result:
ok single line: '4'
Test #9:
score: 0
Accepted
time: 5ms
memory: 9780kb
input:
3110 2891
output:
16
result:
ok single line: '16'
Test #10:
score: 0
Accepted
time: 11ms
memory: 9772kb
input:
9000 7572
output:
16
result:
ok single line: '16'
Test #11:
score: 0
Accepted
time: 11ms
memory: 9776kb
input:
2121 6130
output:
8
result:
ok single line: '8'
Test #12:
score: 0
Accepted
time: 11ms
memory: 9716kb
input:
0906 5762
output:
16
result:
ok single line: '16'
Test #13:
score: 0
Accepted
time: 10ms
memory: 9896kb
input:
4099 9724
output:
16
result:
ok single line: '16'
Test #14:
score: 0
Accepted
time: 3ms
memory: 9940kb
input:
8851 1368
output:
16
result:
ok single line: '16'
Test #15:
score: 0
Accepted
time: 6ms
memory: 9896kb
input:
7907 0614
output:
16
result:
ok single line: '16'