結果

問題 No.208 王将
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-05-15 22:34:15
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 773 bytes
コンパイル時間 3,300 ms
コンパイル使用メモリ 72,884 KB
実行使用メモリ 56,512 KB
最終ジャッジ日時 2023-09-20 08:20:46
合計ジャッジ時間 7,595 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,928 KB
testcase_01 AC 126 ms
56,252 KB
testcase_02 AC 126 ms
55,912 KB
testcase_03 AC 124 ms
55,932 KB
testcase_04 AC 123 ms
56,160 KB
testcase_05 AC 123 ms
55,688 KB
testcase_06 AC 122 ms
55,684 KB
testcase_07 AC 124 ms
55,392 KB
testcase_08 AC 124 ms
56,388 KB
testcase_09 AC 125 ms
56,132 KB
testcase_10 WA -
testcase_11 AC 127 ms
55,860 KB
testcase_12 AC 125 ms
56,004 KB
testcase_13 AC 124 ms
56,000 KB
testcase_14 WA -
testcase_15 AC 126 ms
56,348 KB
testcase_16 AC 126 ms
55,520 KB
testcase_17 AC 125 ms
55,728 KB
testcase_18 WA -
testcase_19 AC 126 ms
55,636 KB
testcase_20 AC 125 ms
55,500 KB
testcase_21 AC 125 ms
55,996 KB
testcase_22 AC 127 ms
55,764 KB
testcase_23 WA -
testcase_24 AC 125 ms
55,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;

public class No0208 {
    
    static final Scanner in = new Scanner(System.in);
    static final PrintWriter out = new PrintWriter(System.out,false);

    static void solve() {
        int x = abs(in.nextInt());
        int y = abs(in.nextInt());
        in.nextInt(); in.nextInt();
        out.println((x+y-min(x,y)));
    }

    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        solve();
        out.flush();

        long end = System.currentTimeMillis();
        //trace(end-start + "ms");
        in.close();
        out.close();
    }

    static void trace(Object... o) { System.out.println(deepToString(o));}
}
0