結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
kenji_shioya
|
| 提出日時 | 2016-06-22 04:15:46 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 71 ms / 1,000 ms |
| + 602µs | |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 2,885 ms |
| コンパイル使用メモリ | 86,192 KB |
| 実行使用メモリ | 43,248 KB |
| 最終ジャッジ日時 | 2026-09-14 04:35:50 |
| 合計ジャッジ時間 | 6,475 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
import java.util.*;
public class Exercise108{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
int ox = sc.nextInt();
int oy = sc.nextInt();
int hx = sc.nextInt();
int hy = sc.nextInt();
if(ox == oy && hx == hy && ox > hx){
System.out.println(ox + 1);
}else{
System.out.println(Math.max(ox, oy));
}
}
}
kenji_shioya