mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 20:48:48 +00:00
parent
b7167752b2
commit
f9b3c0a78a
22
LibreOJ/7/7.go
Normal file
22
LibreOJ/7/7.go
Normal file
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user