結果

問題 No.208 王将
ユーザー tsuchinaga
提出日時 2019-03-21 05:08:42
言語 Go
(1.23.4)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 11,473 ms
コンパイル使用メモリ 229,772 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 01:23:42
合計ジャッジ時間 12,454 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
)

func main() {
	var x, y, x1, y1 int
	_, _ = fmt.Scan(&x, &y, &x1, &y1)

	ans := 0
	if x == y && x1 == y1 {
		ans = x + 2
	} else if x == y && x1 != y1 {
		ans = x
	} else if x > y {
		ans = x
	} else {
		ans = y
	}
	fmt.Println(ans)
}
0