Submission #1628472


Source Code Expand

import java.util.*;

public class Main {
    private static int D[] = new int[7];
    private static int J[] = new int[7];

    public static void input(){
        Scanner scan = new Scanner(System.in);

        for (int i=0;i<7;i++){
            D[i] = scan.nextInt();
        }
        for (int i=0;i<7;i++){
            J[i] = scan.nextInt();
        }
    }

    public static void main(String args[]) {
        //入力
        input();

        int ans = 0;
        for (int i=0;i<7;i++){
            if (D[i] >= J[i]) ans += D[i];
            else ans += J[i];
        }
        System.out.println(ans);
    }
}

Submission Info

Submission Time
Task A - ゴールドラッシュ
User zaraki11
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 648 Byte
Status AC
Exec Time 96 ms
Memory 21972 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 19
Set Name Test Cases
Sample subtask0_sample-01.txt, subtask0_sample-02.txt, subtask0_sample-03.txt, subtask0_sample-04.txt
All subtask0_sample-01.txt, subtask0_sample-02.txt, subtask0_sample-03.txt, subtask0_sample-04.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt
Case Name Status Exec Time Memory
subtask0_sample-01.txt AC 93 ms 20564 KB
subtask0_sample-02.txt AC 93 ms 21204 KB
subtask0_sample-03.txt AC 93 ms 20820 KB
subtask0_sample-04.txt AC 93 ms 21716 KB
subtask1_01.txt AC 94 ms 17492 KB
subtask1_02.txt AC 93 ms 21716 KB
subtask1_03.txt AC 94 ms 19796 KB
subtask1_04.txt AC 93 ms 21972 KB
subtask1_05.txt AC 92 ms 21972 KB
subtask1_06.txt AC 93 ms 19028 KB
subtask1_07.txt AC 94 ms 21844 KB
subtask1_08.txt AC 93 ms 21972 KB
subtask1_09.txt AC 96 ms 20948 KB
subtask1_10.txt AC 93 ms 21716 KB
subtask1_11.txt AC 95 ms 18900 KB
subtask1_12.txt AC 93 ms 21716 KB
subtask1_13.txt AC 93 ms 19796 KB
subtask1_14.txt AC 93 ms 17364 KB
subtask1_15.txt AC 93 ms 21844 KB