Submission #1211839


Source Code Expand

Copy
S,T=(0..2).map{(?0+gets).chars.map{|c|$.-=~c.count(?A)}};puts$<.map{|l|a,b,c,d=l.split.map &:to_i;(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 138 Byte
Status
Exec Time 360 ms
Memory 23532 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 337 ms 22636 KB
bound_1.txt 340 ms 22636 KB
bound_2.txt 341 ms 22636 KB
bound_3.txt 360 ms 23532 KB
min.txt 7 ms 1788 KB
rnd_10000_10.txt 354 ms 23404 KB
rnd_10000_10000.txt 352 ms 23404 KB
rnd_10000_2.txt 353 ms 23404 KB
rnd_10_10.txt 354 ms 23404 KB
rnd_10_10000.txt 359 ms 23404 KB
rnd_10_2.txt 353 ms 23404 KB
rnd_2_10.txt 354 ms 23404 KB
rnd_2_10000.txt 353 ms 23404 KB
rnd_2_2.txt 354 ms 23404 KB