結果

問題 No.208 王将
ユーザー tsunabit
提出日時 2020-03-15 21:54:34
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 5,484 ms
コンパイル使用メモリ 75,348 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-11-25 22:25:42
合計ジャッジ時間 8,198 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No208 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt(), y = sc.nextInt(), x2 = sc.nextInt(), y2 = sc.nextInt();
		if(x==y && x2==y2) System.out.println(x+1);
		else System.out.println(Math.max(x, y));
	}
}
0