Submission #1211801


Source Code Expand

Copy
S,T=[0,0].map{(?0+gets).chars.map{|c|$.-=~c.count(?A)}};$<.map{|l|a,b,c,d=l.split.map &:to_i;d&&puts((S[b]-S[a-1]-T[d]+T[c-1])%3<1?:YES: :NO)}

Submission Info

Submission Time
Task E - TrBBnsformBBtion
User akouryy
Language Ruby (2.3.3)
Score 600
Code Size 142 Byte
Status
Exec Time 447 ms
Memory 23020 KB

Compile Error

./Main.rb:1: warning: `&' interpreted as argument prefix

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt
All 600 / 600 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 7 ms 1788 KB
0_001.txt 7 ms 1788 KB
bound_0.txt 419 ms 22124 KB
bound_1.txt 422 ms 22124 KB
bound_2.txt 432 ms 22124 KB
bound_3.txt 447 ms 23020 KB
min.txt 7 ms 1788 KB
rnd_10000_10.txt 432 ms 22636 KB
rnd_10000_10000.txt 431 ms 22636 KB
rnd_10000_2.txt 436 ms 22636 KB
rnd_10_10.txt 432 ms 22636 KB
rnd_10_10000.txt 431 ms 22636 KB
rnd_10_2.txt 440 ms 22636 KB
rnd_2_10.txt 430 ms 22636 KB
rnd_2_10000.txt 430 ms 22636 KB
rnd_2_2.txt 432 ms 22636 KB