Submission #4905691


Source Code Expand

package main

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

var sc = bufio.NewScanner(os.Stdin)

func nextLine() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	a, _ := strconv.Atoi(nextLine())
	nextLine()
	nextLine()
	nextLine()
	e, _ := strconv.Atoi(nextLine())
	k, _ := strconv.Atoi(nextLine())
	if e - a > k {
		fmt.Println(":(")
	} else {
		fmt.Println("Yay!")
	}
}

Submission Info

Submission Time
Task A - Five Antennas
User wakanapo
Language Go (1.6)
Score 100
Code Size 407 Byte
Status AC
Exec Time 1 ms
Memory 640 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 9
Set Name Test Cases
Sample s1.txt, s2.txt
All in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
in1.txt AC 1 ms 640 KiB
in2.txt AC 1 ms 640 KiB
in3.txt AC 1 ms 640 KiB
in4.txt AC 1 ms 640 KiB
in5.txt AC 1 ms 640 KiB
in6.txt AC 1 ms 640 KiB
in7.txt AC 1 ms 640 KiB
s1.txt AC 1 ms 640 KiB
s2.txt AC 1 ms 640 KiB