Submission #3013734
Source Code Expand
s = input() t = input() q = int(input()) def check(x, y): xa = len(list(filter(lambda i: i == "A", x))) ya = len(list(filter(lambda i: i == "A", y))) if (2 * xa - len(x)) % 3 == (2 * ya - len(y)) % 3: print("YES") else: print("NO") for _ in range(q): a, b, c, d = map(int, input().split()) check(s[a - 1 : b], t[c - 1 : d])
Submission Info
Submission Time | |
---|---|
Task | E - TrBBnsformBBtion |
User | anagohirame |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 351 Byte |
Status | TLE |
Exec Time | 2104 ms |
Memory | 4228 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 600 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt |
All | 0_000.txt, 0_001.txt, bound_0.txt, bound_1.txt, bound_2.txt, bound_3.txt, min.txt, rnd_10000_10.txt, rnd_10000_10000.txt, rnd_10000_2.txt, rnd_10_10.txt, rnd_10_10000.txt, rnd_10_2.txt, rnd_2_10.txt, rnd_2_10000.txt, rnd_2_2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | AC | 17 ms | 3060 KB |
0_001.txt | AC | 17 ms | 3060 KB |
bound_0.txt | TLE | 2104 ms | 4128 KB |
bound_1.txt | TLE | 2104 ms | 4092 KB |
bound_2.txt | TLE | 2104 ms | 4228 KB |
bound_3.txt | TLE | 2104 ms | 4036 KB |
min.txt | AC | 17 ms | 3060 KB |
rnd_10000_10.txt | TLE | 2104 ms | 4064 KB |
rnd_10000_10000.txt | TLE | 2104 ms | 4080 KB |
rnd_10000_2.txt | TLE | 2104 ms | 4104 KB |
rnd_10_10.txt | TLE | 2104 ms | 4096 KB |
rnd_10_10000.txt | TLE | 2104 ms | 3880 KB |
rnd_10_2.txt | TLE | 2103 ms | 4032 KB |
rnd_2_10.txt | TLE | 2104 ms | 3768 KB |
rnd_2_10000.txt | TLE | 2104 ms | 4024 KB |
rnd_2_2.txt | TLE | 2104 ms | 3760 KB |