結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
koheiarai94
|
| 提出日時 | 2017-09-25 01:46:14 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 1,000 ms |
| コード長 | 450 bytes |
| コンパイル時間 | 2,142 ms |
| コンパイル使用メモリ | 74,264 KB |
| 実行使用メモリ | 54,392 KB |
| 最終ジャッジ日時 | 2024-11-14 07:36:44 |
| 合計ジャッジ時間 | 6,560 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
long x = in.nextLong();
long y = in.nextLong();
long x1 = in.nextLong();
long y1 = in.nextLong();
long answer = Math.max(x, y);
if (x1 < x && y1 < y && x == y && x1 == y1) {
answer++;
}
System.out.println(answer);
}
}
koheiarai94