Submission #4051029
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 | A - Traveling Budget |
User | T49E2 |
Language | Julia (0.5.0) |
Score | 0 |
Code Size | 707 Byte |
Status | RE |
Exec Time | 704 ms |
Memory | 131112 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | RE | 682 ms | 127496 KB |
02.txt | RE | 685 ms | 128216 KB |
03.txt | RE | 683 ms | 128280 KB |
04.txt | RE | 688 ms | 130236 KB |
05.txt | RE | 686 ms | 127792 KB |
06.txt | RE | 690 ms | 128476 KB |
07.txt | RE | 704 ms | 129416 KB |
08.txt | RE | 698 ms | 131112 KB |
09.txt | RE | 684 ms | 127944 KB |
sample-01.txt | RE | 685 ms | 127696 KB |
sample-02.txt | RE | 686 ms | 130780 KB |
sample-03.txt | RE | 688 ms | 127796 KB |