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 Python (3.4.3)
Score 200
Code Size 250 Byte
Status AC
Exec Time 44 ms
Memory 2940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 10
Set Name Test Cases
Sample example0.txt, example1.txt, example2.txt
All 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 AC 44 ms 2940 KB
001.txt AC 17 ms 2940 KB
002.txt AC 17 ms 2940 KB
003.txt AC 17 ms 2940 KB
004.txt AC 17 ms 2940 KB
005.txt AC 17 ms 2940 KB
006.txt AC 17 ms 2940 KB
example0.txt AC 17 ms 2940 KB
example1.txt AC 17 ms 2940 KB
example2.txt AC 17 ms 2940 KB