From f9b3c0a78a0b78fb48803b0e0c7809b6f6d3169b Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Wed, 8 Jun 2022 16:21:23 +0800 Subject: [PATCH] #7. Input Test https://loj.ac/s/1478204 --- LibreOJ/7/7.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 LibreOJ/7/7.go diff --git a/LibreOJ/7/7.go b/LibreOJ/7/7.go new file mode 100644 index 00000000..6d2b3e86 --- /dev/null +++ b/LibreOJ/7/7.go @@ -0,0 +1,22 @@ +package main + +import ( + "bufio" + "fmt" + "os" + "strconv" +) + +func main() { + scanner := bufio.NewScanner(os.Stdin) + + var ans int64 = 0 + + for scanner.Scan() { + x, _ := strconv.ParseInt(scanner.Text(), 10, 64) + + ans ^= x + } + + fmt.Println(ans) +}