Submission #4051035
Source Code Expand
parseInt(x)=parse(Int,x) parseMap(x::Array{SubString{String},1})=map(parseInt,x) function main() a,b = readline() |> split |> parseMap x = zeros(Int,100,100) for i in 1:a-1 if div(i,48)%2 == 1 x[div(i,48)+2,2*(i%47)+2] = 1 else x[div(i,48)+2,2*(i%47)+3] = 1 end end for i in 1:b-1 if div(i,48)%2 == 1 x[52+div(i,48),2*(i%47)+2] = 1 else x[52+div(i,48),2*(i%47)+3] = 1 end end for i in 1:50 for j in 1:100 if x[i,j] == 1 print('.') else print('#') end end println("") end for i in 51:100 for j in 1:100 if x[i,j] == 1 print('#') else print('.') end end println("") end end main()
Submission Info
Submission Time | |
---|---|
Task | D - Grid Components |
User | T49E2 |
Language | Julia (0.5.0) |
Score | 0 |
Code Size | 707 Byte |
Status | WA |
Exec Time | 404 ms |
Memory | 112504 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt, sample-03.txt, sample-04.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 20.txt, 21.txt, 22.txt, 23.txt, 24.txt, 25.txt, 26.txt, 27.txt, 28.txt, 29.txt, 30.txt, 31.txt, 32.txt, 33.txt, 34.txt, 35.txt, 36.txt, 37.txt, 38.txt, 39.txt, 40.txt, sample-01.txt, sample-02.txt, sample-03.txt, sample-04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | WA | 391 ms | 111304 KB |
02.txt | WA | 394 ms | 110500 KB |
03.txt | WA | 396 ms | 110132 KB |
04.txt | WA | 393 ms | 109548 KB |
05.txt | WA | 392 ms | 112280 KB |
06.txt | WA | 393 ms | 112292 KB |
07.txt | WA | 393 ms | 110392 KB |
08.txt | WA | 393 ms | 109956 KB |
09.txt | WA | 396 ms | 109160 KB |
10.txt | WA | 394 ms | 111560 KB |
11.txt | WA | 392 ms | 109808 KB |
12.txt | WA | 392 ms | 111568 KB |
13.txt | WA | 393 ms | 109108 KB |
14.txt | WA | 392 ms | 112084 KB |
15.txt | WA | 391 ms | 108676 KB |
16.txt | WA | 392 ms | 108548 KB |
17.txt | WA | 395 ms | 111008 KB |
18.txt | WA | 391 ms | 110600 KB |
19.txt | WA | 393 ms | 112008 KB |
20.txt | WA | 393 ms | 110336 KB |
21.txt | WA | 395 ms | 110200 KB |
22.txt | WA | 394 ms | 109352 KB |
23.txt | WA | 395 ms | 112388 KB |
24.txt | WA | 394 ms | 111088 KB |
25.txt | WA | 399 ms | 110896 KB |
26.txt | WA | 392 ms | 109372 KB |
27.txt | WA | 392 ms | 108660 KB |
28.txt | WA | 395 ms | 112196 KB |
29.txt | WA | 395 ms | 110472 KB |
30.txt | WA | 398 ms | 109148 KB |
31.txt | WA | 394 ms | 109312 KB |
32.txt | WA | 404 ms | 111552 KB |
33.txt | WA | 394 ms | 109236 KB |
34.txt | WA | 392 ms | 110304 KB |
35.txt | WA | 399 ms | 112504 KB |
36.txt | WA | 393 ms | 110156 KB |
37.txt | WA | 394 ms | 109120 KB |
38.txt | WA | 391 ms | 112192 KB |
39.txt | WA | 393 ms | 109256 KB |
40.txt | WA | 394 ms | 109308 KB |
sample-01.txt | WA | 395 ms | 110472 KB |
sample-02.txt | WA | 391 ms | 109724 KB |
sample-03.txt | WA | 394 ms | 111024 KB |
sample-04.txt | WA | 394 ms | 109428 KB |