結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-02 22:34:36 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 54 ms / 1,000 ms |
| + 37µs | |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 1,346 ms |
| コンパイル使用メモリ | 85,240 KB |
| 実行使用メモリ | 42,624 KB |
| 最終ジャッジ日時 | 2026-09-09 01:28:03 |
| 合計ジャッジ時間 | 4,873 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
import java.util.Scanner;
class Main{
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();
sc.close();
if(x==y&&x2==y2&&x>x2) System.out.print(x+1);
else if(x>y) System.out.print(x);
else System.out.print(y);
}
}