Submission #4051047
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) println("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 | 728 Byte |
Status | WA |
Exec Time | 398 ms |
Memory | 113056 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 | 385 ms | 109480 KB |
02.txt | WA | 387 ms | 109268 KB |
03.txt | WA | 385 ms | 109540 KB |
04.txt | WA | 386 ms | 110604 KB |
05.txt | WA | 388 ms | 112776 KB |
06.txt | WA | 391 ms | 109488 KB |
07.txt | WA | 390 ms | 111408 KB |
08.txt | WA | 398 ms | 109476 KB |
09.txt | WA | 392 ms | 109908 KB |
10.txt | WA | 389 ms | 108428 KB |
11.txt | WA | 387 ms | 110228 KB |
12.txt | AC | 390 ms | 113056 KB |
13.txt | WA | 388 ms | 110724 KB |
14.txt | AC | 386 ms | 109636 KB |
15.txt | AC | 385 ms | 110336 KB |
16.txt | WA | 386 ms | 108928 KB |
17.txt | WA | 387 ms | 111456 KB |
18.txt | WA | 390 ms | 111092 KB |
19.txt | WA | 385 ms | 110168 KB |
20.txt | WA | 386 ms | 109220 KB |
21.txt | AC | 386 ms | 109264 KB |
22.txt | WA | 387 ms | 109244 KB |
23.txt | WA | 391 ms | 109364 KB |
24.txt | WA | 386 ms | 111204 KB |
25.txt | WA | 386 ms | 109440 KB |
26.txt | WA | 387 ms | 110732 KB |
27.txt | WA | 386 ms | 110216 KB |
28.txt | AC | 388 ms | 110304 KB |
29.txt | AC | 388 ms | 110644 KB |
30.txt | AC | 387 ms | 109628 KB |
31.txt | AC | 385 ms | 112132 KB |
32.txt | AC | 387 ms | 110740 KB |
33.txt | WA | 385 ms | 111096 KB |
34.txt | WA | 386 ms | 109672 KB |
35.txt | WA | 384 ms | 110464 KB |
36.txt | WA | 386 ms | 112660 KB |
37.txt | WA | 385 ms | 110472 KB |
38.txt | WA | 385 ms | 112292 KB |
39.txt | WA | 387 ms | 109364 KB |
40.txt | WA | 388 ms | 109740 KB |
sample-01.txt | AC | 386 ms | 111664 KB |
sample-02.txt | AC | 390 ms | 110168 KB |
sample-03.txt | AC | 390 ms | 111072 KB |
sample-04.txt | AC | 394 ms | 110320 KB |