結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
koheiarai94
|
| 提出日時 | 2017-09-25 01:47:09 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 57 ms / 1,000 ms |
| + 207µs | |
| コード長 | 442 bytes |
| 記録 | |
| コンパイル時間 | 1,425 ms |
| コンパイル使用メモリ | 85,668 KB |
| 実行使用メモリ | 45,380 KB |
| 最終ジャッジ日時 | 2026-09-22 04:52:49 |
| 合計ジャッジ時間 | 4,587 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
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);
int x = in.nextInt();
int y = in.nextInt();
int x1 = in.nextInt();
int y1 = in.nextInt();
long answer = Math.max(x, y);
if (x1 < x && y1 < y && x == y && x1 == y1) {
answer++;
}
System.out.println(answer);
}
}
koheiarai94