結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-10-07 11:41:50 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| 記録 | |
| コンパイル時間 | 1,486 ms |
| コンパイル使用メモリ | 81,780 KB |
| 実行使用メモリ | 127,992 KB |
| 最終ジャッジ日時 | 2026-04-02 20:06:51 |
| 合計ジャッジ時間 | 3,710 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
ソースコード
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int x1 = sc.nextInt();
int y1 = sc.nextInt();
if (x == y && x1 == y1) {
System.out.println(x + 1);
} else {
System.out.println(Math.max(x, y));
}
}
}
tenten