結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-10-07 11:41:50 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 2,291 ms |
| コンパイル使用メモリ | 74,296 KB |
| 実行使用メモリ | 41,324 KB |
| 最終ジャッジ日時 | 2024-07-20 03:19:05 |
| 合計ジャッジ時間 | 6,973 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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