Submission #6518375


Source Code Expand

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func getInput() (int, int, error) {
	sc.Split(bufio.ScanWords)
	a := make([]int, 2)
	for i := range a {
		sc.Scan()
		n, err := strconv.Atoi(sc.Text())
		a[i] = n
		if err != nil {
			return 0, 0, err
		}
	}
	return a[0], a[1], nil
}

func main() {

	a, b, err := getInput()
	if err != nil {
		fmt.Printf("error: %s\n", err)
		return
	}

	if (a*b)&0x00000001 == 1 {
		fmt.Println("Odd")
		return
	}

	fmt.Println("Even")

}

Submission Info

Submission Time
Task A - Product
User feketerigo
Language Go (1.6)
Score 100
Code Size 561 Byte
Status AC
Exec Time 1 ms
Memory 640 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample 0_000.txt, 0_001.txt
All 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt
Case Name Status Exec Time Memory
0_000.txt AC 1 ms 640 KB
0_001.txt AC 1 ms 640 KB
1_002.txt AC 1 ms 640 KB
1_003.txt AC 1 ms 640 KB
1_004.txt AC 1 ms 640 KB
1_005.txt AC 1 ms 640 KB
1_006.txt AC 1 ms 640 KB