結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2017-09-25 01:44:22 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 430 bytes |
コンパイル時間 | 1,988 ms |
コンパイル使用メモリ | 74,172 KB |
実行使用メモリ | 54,480 KB |
最終ジャッジ日時 | 2024-11-14 07:35:49 |
合計ジャッジ時間 | 6,252 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 2 |
ソースコード
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 (x == y && x1 == y1) { answer++; } System.out.println(answer); } }