Submission #3013732
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 | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 351 Byte |
Status | TLE |
Exec Time | 2111 ms |
Memory | 122248 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 | 161 ms | 38256 KB |
0_001.txt | AC | 167 ms | 38256 KB |
bound_0.txt | TLE | 2111 ms | 121608 KB |
bound_1.txt | TLE | 2111 ms | 121864 KB |
bound_2.txt | TLE | 2111 ms | 122248 KB |
bound_3.txt | TLE | 2111 ms | 122120 KB |
min.txt | AC | 163 ms | 38256 KB |
rnd_10000_10.txt | TLE | 2111 ms | 121480 KB |
rnd_10000_10000.txt | TLE | 2110 ms | 121400 KB |
rnd_10000_2.txt | TLE | 2111 ms | 122248 KB |
rnd_10_10.txt | TLE | 2111 ms | 121052 KB |
rnd_10_10000.txt | TLE | 2110 ms | 119388 KB |
rnd_10_2.txt | TLE | 2110 ms | 120908 KB |
rnd_2_10.txt | TLE | 2111 ms | 119644 KB |
rnd_2_10000.txt | TLE | 2111 ms | 121736 KB |
rnd_2_2.txt | TLE | 2111 ms | 121096 KB |