結果
| 問題 |
No.581 XOR
|
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2017-10-27 22:30:22 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,293 bytes |
| コンパイル時間 | 11,136 ms |
| コンパイル使用メモリ | 232,740 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 21:39:39 |
| 合計ジャッジ時間 | 11,668 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 |
ソースコード
package main
import (
"fmt"
"os"
"bufio"
"bytes"
"strconv"
)
const NEW_LINE byte = 10
const SPACE string = " "
type long int64
type float float32
type double float64
var reader *bufio.Reader
var buffer[][]byte
var pointer int
func InitReader () {
reader = bufio.NewReaderSize(os.Stdin,4096);
}
func ReadLine () []byte {
retBytes,_ := reader.ReadBytes(NEW_LINE);
return retBytes
}
func Next () string {
if pointer < len(buffer) {
ret := buffer[pointer]
pointer++
return string(ret)
}
bs := ReadLine()
bs = bs[0:len(bs)-1]
buffer = bytes.Split(bs,[]byte(SPACE))
pointer = 0
return Next()
}
func NextLine () string {
b := ReadLine()
return string(bytes.TrimSpace(b))
}
func NextInt () int {
s := Next()
i,_ := strconv.ParseInt(s,10,32)
return int(i)
}
func NextLong () long {
s := Next()
l,_ := strconv.ParseInt(s,10,64)
return long(l)
}
func NextFloat () float {
s := Next()
f,_ := strconv.ParseFloat(s,32)
return float(f)
}
func NextDouble () double {
s := Next()
d,_ := strconv.ParseFloat(s,64)
return double(d)
}
func main () {
InitReader()
var A long = NextLong();
var C long = NextLong();
var B long = A^C;
fmt.Println(B);
}
tookunn_1213