Submission #1240353
Source Code Expand
n=gets.to_i *S,T=$<.map &:chomp l=r=0 S.each{|e| l+=1 if e.gsub('?','a')<=T r+=1 if e.gsub('?','z')<T } puts [*r+1..l+1]*' '
Submission Info
Submission Time | |
---|---|
Task | A - Atcoder Handles |
User | leafmoon |
Language | Ruby (2.3.3) |
Score | 250 |
Code Size | 133 Byte |
Status | AC |
Exec Time | 43 ms |
Memory | 3324 KB |
Compile Error
./Main.rb:2: warning: `&' interpreted as argument prefix ./Main.rb:1: warning: assigned but unused variable - n
Judge Result
Set Name | Subtask1 | Subtask2 | ||||
---|---|---|---|---|---|---|
Score / Max Score | 130 / 130 | 120 / 120 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Subtask1 | sub1_in1.txt, sub1_in2.txt, sub1_in3.txt |
Subtask2 | sub1_in1.txt, sub1_in2.txt, sub1_in3.txt, sub2_in1.txt, sub2_in2.txt, sub2_in3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sub1_in1.txt | AC | 7 ms | 1788 KB |
sub1_in2.txt | AC | 8 ms | 1788 KB |
sub1_in3.txt | AC | 8 ms | 1788 KB |
sub2_in1.txt | AC | 8 ms | 1788 KB |
sub2_in2.txt | AC | 32 ms | 2428 KB |
sub2_in3.txt | AC | 43 ms | 3324 KB |