結果

問題 No.208 王将
ユーザー tsunabittsunabit
提出日時 2020-03-15 21:54:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 4,101 ms
コンパイル使用メモリ 73,016 KB
実行使用メモリ 56,460 KB
最終ジャッジ日時 2023-08-17 04:41:30
合計ジャッジ時間 7,354 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,952 KB
testcase_01 AC 120 ms
55,960 KB
testcase_02 AC 119 ms
56,056 KB
testcase_03 AC 120 ms
56,096 KB
testcase_04 AC 121 ms
56,196 KB
testcase_05 AC 121 ms
56,216 KB
testcase_06 WA -
testcase_07 AC 126 ms
55,820 KB
testcase_08 AC 126 ms
55,740 KB
testcase_09 AC 123 ms
56,040 KB
testcase_10 AC 121 ms
55,804 KB
testcase_11 AC 121 ms
55,852 KB
testcase_12 AC 119 ms
55,996 KB
testcase_13 AC 119 ms
56,192 KB
testcase_14 AC 119 ms
55,736 KB
testcase_15 AC 122 ms
56,100 KB
testcase_16 AC 121 ms
55,916 KB
testcase_17 AC 119 ms
56,460 KB
testcase_18 AC 124 ms
55,516 KB
testcase_19 AC 123 ms
55,804 KB
testcase_20 AC 122 ms
56,200 KB
testcase_21 AC 122 ms
55,812 KB
testcase_22 AC 120 ms
55,488 KB
testcase_23 AC 121 ms
56,052 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

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