結果

問題 No.920 あかあお
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-12-08 21:50:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 541 bytes
コンパイル時間 2,790 ms
コンパイル使用メモリ 71,148 KB
実行使用メモリ 58,172 KB
最終ジャッジ日時 2023-08-30 06:40:51
合計ジャッジ時間 4,726 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,812 KB
testcase_01 AC 124 ms
56,148 KB
testcase_02 AC 122 ms
55,700 KB
testcase_03 AC 127 ms
55,736 KB
testcase_04 AC 127 ms
55,540 KB
testcase_05 AC 124 ms
56,068 KB
testcase_06 WA -
testcase_07 AC 121 ms
56,152 KB
testcase_08 AC 127 ms
55,428 KB
testcase_09 AC 123 ms
55,932 KB
testcase_10 AC 126 ms
56,012 KB
testcase_11 AC 127 ms
55,772 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main (String[] args) {
        /* code */
        Scanner s = new Scanner(System.in);
        int X =s.nextInt();
        int Y =s.nextInt();
        int Z =s.nextInt();
            int p = Math.max(X,Y);
            int q = Math.min(X,Y);
            int r = p-q;
            
                int k = Math.max(r,Z);
                int l = Math.min(r,Z);
                int m = k-l;
                int n = (Z-r)/2;
                
                System.out.println(q+l+n);
    }
}
0