結果

問題 No.208 王将
ユーザー koheiarai94koheiarai94
提出日時 2017-09-25 01:44:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 430 bytes
コンパイル時間 4,321 ms
コンパイル使用メモリ 78,104 KB
実行使用メモリ 41,372 KB
最終ジャッジ日時 2024-04-26 17:54:27
合計ジャッジ時間 5,403 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
41,208 KB
testcase_01 AC 104 ms
40,208 KB
testcase_02 AC 112 ms
41,220 KB
testcase_03 AC 107 ms
41,072 KB
testcase_04 AC 98 ms
40,240 KB
testcase_05 AC 103 ms
39,992 KB
testcase_06 WA -
testcase_07 AC 101 ms
40,168 KB
testcase_08 AC 113 ms
41,032 KB
testcase_09 AC 110 ms
40,052 KB
testcase_10 AC 105 ms
40,304 KB
testcase_11 AC 101 ms
39,780 KB
testcase_12 AC 108 ms
40,156 KB
testcase_13 AC 118 ms
41,008 KB
testcase_14 AC 119 ms
41,172 KB
testcase_15 AC 116 ms
40,292 KB
testcase_16 AC 107 ms
39,880 KB
testcase_17 AC 114 ms
41,196 KB
testcase_18 AC 118 ms
41,372 KB
testcase_19 AC 114 ms
40,416 KB
testcase_20 AC 109 ms
41,176 KB
testcase_21 AC 114 ms
41,092 KB
testcase_22 AC 114 ms
41,260 KB
testcase_23 AC 116 ms
41,080 KB
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

// Yuki 208
// https://yukicoder.me/problems/no/208

public class Main {
	
	public static void main (String[] args) throws InterruptedException {
		Scanner in = new Scanner(System.in);
		
		long x = in.nextLong();
		long y = in.nextLong();
		long x1 = in.nextLong();
		long y1 = in.nextLong();
		
		long answer = Math.max(x, y);
		if (x == y && x1 == y1) {
			answer++;
		}
		System.out.println(answer);
	}
}
0