Submission #3276391
Source Code Expand
Uses math; var h,w,ans:Longint; begin read(h,w); if(h mod 3=0)or(w mod 3=0)then write(0) else if h mod 2=0 then if w mod 2=0 then write(Min(h div 2,w div 2))else write(Min(h div 2,w)) else if w mod 2=0 then write(Min(h,w div 2)) else if w=h then write(h-(h+1)div 6)else write(Min(w,h)); end.
Submission Info
| Submission Time | |
|---|---|
| Task | C - Chocolate Bar |
| User | kotatsugame |
| Language | Pascal (FPC 2.6.2) |
| Score | 400 |
| Code Size | 308 Byte |
| Status | AC |
| Exec Time | 0 ms |
| Memory | 128 KiB |
Compile Error
/usr/bin/ld.bfd: warning: ./link.res contains output sections; did you forget -T?
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 400 / 400 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt |
| All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0_00.txt | AC | 0 ms | 128 KiB |
| 0_01.txt | AC | 0 ms | 128 KiB |
| 0_02.txt | AC | 0 ms | 128 KiB |
| 0_03.txt | AC | 0 ms | 128 KiB |
| 0_04.txt | AC | 0 ms | 128 KiB |
| 1_00.txt | AC | 0 ms | 128 KiB |
| 1_01.txt | AC | 0 ms | 128 KiB |
| 1_02.txt | AC | 0 ms | 128 KiB |
| 1_03.txt | AC | 0 ms | 128 KiB |
| 1_04.txt | AC | 0 ms | 128 KiB |
| 1_05.txt | AC | 0 ms | 128 KiB |
| 1_06.txt | AC | 0 ms | 128 KiB |
| 1_07.txt | AC | 0 ms | 128 KiB |
| 1_08.txt | AC | 0 ms | 128 KiB |
| 1_09.txt | AC | 0 ms | 128 KiB |
| 1_10.txt | AC | 0 ms | 128 KiB |
| 1_11.txt | AC | 0 ms | 128 KiB |
| 1_12.txt | AC | 0 ms | 128 KiB |
| 1_13.txt | AC | 0 ms | 128 KiB |
| 1_14.txt | AC | 0 ms | 128 KiB |