結果

問題 No.920 あかあお
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-01 22:04:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 4,059 ms
コンパイル使用メモリ 71,616 KB
実行使用メモリ 56,504 KB
最終ジャッジ日時 2023-08-14 01:53:30
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,704 KB
testcase_01 AC 115 ms
55,904 KB
testcase_02 AC 111 ms
55,668 KB
testcase_03 AC 112 ms
55,460 KB
testcase_04 AC 112 ms
55,820 KB
testcase_05 AC 114 ms
55,916 KB
testcase_06 WA -
testcase_07 AC 118 ms
55,708 KB
testcase_08 AC 118 ms
54,068 KB
testcase_09 AC 118 ms
55,600 KB
testcase_10 AC 116 ms
55,704 KB
testcase_11 AC 115 ms
55,600 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        //入力
        int x = Integer.parseInt(sc.next());
        int y = Integer.parseInt(sc.next());
        int z = Integer.parseInt(sc.next());
        
        //処理
        int ans = (x + y + z) / 2;
        
        //出力
        System.out.println(ans);
    }
}
0