Submission #1104867
Source Code Expand
a,b=gets.split.map &:to_i aa=[] a.times do aa<< gets.chomp end ab=[] c=0 b.times do ab<< s=gets.chomp c+=s.count(?.) end jd=true (a-b+1).times do |i| (a-b+1).times do |j| jd=true b.times do |k| b.times do |l| if ab[k][l]==?# && aa[i+k][j+l]==?. jd=false break end end break if !jd end break if jd end end jd=true if c==b**2 puts jd ? :Yes : :No
Submission Info
Submission Time | |
---|---|
Task | B - Template Matching |
User | miraxial |
Language | Ruby (2.3.3) |
Score | 0 |
Code Size | 452 Byte |
Status | WA |
Exec Time | 10 ms |
Memory | 1788 KB |
Compile Error
./Main.rb:1: warning: `&' interpreted as argument prefix
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | sample_01.txt, sample_02.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt, subtask_1_08.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 7 ms | 1788 KB |
sample_02.txt | AC | 7 ms | 1788 KB |
subtask_1_01.txt | AC | 7 ms | 1788 KB |
subtask_1_02.txt | AC | 7 ms | 1788 KB |
subtask_1_03.txt | AC | 7 ms | 1788 KB |
subtask_1_04.txt | AC | 8 ms | 1788 KB |
subtask_1_05.txt | AC | 9 ms | 1788 KB |
subtask_1_06.txt | AC | 7 ms | 1788 KB |
subtask_1_07.txt | AC | 9 ms | 1788 KB |
subtask_1_08.txt | WA | 10 ms | 1788 KB |