Submission #172508


Source Code Expand

Copy
import java.util.Scanner;

public class Main {

    public static int R;
    public static int C;
    public static int D;
    public static int[][] array;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        R = sc.nextInt();
        C = sc.nextInt();
        D = sc.nextInt();
        int max = 0;
        for (int i = 0; i < R; i++) {
            for (int j = 0; j < C; j++) {
                int value = sc.nextInt();
                if (i + j <= D) {
                    if ((i + j + D) % 2 == 0) {
                        if (max < value) {
                            max = value;
                        }
                    }
                }
            }
        }
        System.out.println(max);
    }
}

Submission Info

Submission Time
Task B - 謎の人物X
User tksy
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 797 Byte
Status AC
Exec Time 1980 ms
Memory 39680 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 60 / 60 40 / 40
Status
AC × 3
AC × 18
AC × 30
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
Subtask1 sample_01.txt, sample_02.txt, sample_03.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
Subtask2 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, subtask2_01.txt, subtask2_02.txt, subtask2_03.txt, subtask2_04.txt, subtask2_05.txt, subtask2_06.txt, subtask2_07.txt, subtask2_08.txt, subtask2_09.txt, subtask2_10.txt, subtask2_11.txt, subtask2_12.txt, subtask2_13.txt, subtask2_14.txt, subtask2_15.txt
Case Name Status Exec Time Memory
sample_01.txt AC 500 ms 23200 KB
sample_02.txt AC 449 ms 23264 KB
sample_03.txt AC 461 ms 23216 KB
subtask1_01.txt AC 458 ms 23216 KB
subtask1_02.txt AC 469 ms 23728 KB
subtask1_03.txt AC 478 ms 23724 KB
subtask1_04.txt AC 640 ms 32384 KB
subtask1_05.txt AC 489 ms 24164 KB
subtask1_06.txt AC 574 ms 26996 KB
subtask1_07.txt AC 649 ms 31184 KB
subtask1_08.txt AC 658 ms 31980 KB
subtask1_09.txt AC 674 ms 32232 KB
subtask1_10.txt AC 666 ms 32140 KB
subtask1_11.txt AC 699 ms 33860 KB
subtask1_12.txt AC 708 ms 32940 KB
subtask1_13.txt AC 661 ms 32368 KB
subtask1_14.txt AC 712 ms 32584 KB
subtask1_15.txt AC 689 ms 32172 KB
subtask2_01.txt AC 552 ms 25648 KB
subtask2_02.txt AC 557 ms 25580 KB
subtask2_03.txt AC 1140 ms 36412 KB
subtask2_04.txt AC 599 ms 29092 KB
subtask2_05.txt AC 779 ms 36556 KB
subtask2_06.txt AC 918 ms 36044 KB
subtask2_07.txt AC 1738 ms 35820 KB
subtask2_08.txt AC 1878 ms 36664 KB
subtask2_09.txt AC 1933 ms 36540 KB
subtask2_10.txt AC 1907 ms 36504 KB
subtask2_11.txt AC 1909 ms 39680 KB
subtask2_12.txt AC 1933 ms 36288 KB
subtask2_13.txt AC 1889 ms 36488 KB
subtask2_14.txt AC 1980 ms 36696 KB
subtask2_15.txt AC 1968 ms 36164 KB