Submission #10835267


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

H,W = map(int,read().split())

if H > W:
    H,W = W,H

if H == 1:
    print(1)
else:
    N = H * W
    print((N+1)//2)

Submission Info

Submission Time
Task B - Bishop
User maspy
Language Python3 (3.4.3)
Score 200
Code Size 250 Byte
Status
Exec Time 44 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example0.txt, example1.txt, example2.txt
All 200 / 200 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, example0.txt, example1.txt, example2.txt
Case Name Status Exec Time Memory
000.txt 44 ms 2940 KB
001.txt 17 ms 2940 KB
002.txt 17 ms 2940 KB
003.txt 17 ms 2940 KB
004.txt 17 ms 2940 KB
005.txt 17 ms 2940 KB
006.txt 17 ms 2940 KB
example0.txt 17 ms 2940 KB
example1.txt 17 ms 2940 KB
example2.txt 17 ms 2940 KB