Submission #172249


Source Code Expand

Copy
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author Ryota
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
        
        int sisetu[][] = new int[1000][1000];
        String foo[] = new String[1000];
        int max = 0;
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        String[] str2 = new String[3];
        str2 = str.split(" ", 3);
        int R,C,D;
        R = Integer.parseInt(str2[0]);
        C = Integer.parseInt(str2[1]);
        D = Integer.parseInt(str2[2]);
        
        //マップ生成
        for(int i = 0; i < R ; i++){
            
            str = br.readLine();
            foo = str.split(" ",C);
            
            for(int j = 0; j < C ; j++){
                sisetu[i][j] = Integer.parseInt(foo[j]);
            }
           
        }
        
        //捜査
        
        for(int i = 0; i <= D ; i++){
            for(int j = 0; j <= D; j++){
                if(D%2 == (i+j)%2){
                    if(max < sisetu[i][j]){
                        max = sisetu[i][j];
                    }
                }
            }
        }
        
        System.out.println(max);
        
        
    }
    
}

Submission Info

Submission Time
Task B - 謎の人物X
User shobonara
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 1697 Byte
Status WA
Exec Time 729 ms
Memory 38404 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 0 / 60 0 / 40
Status
AC × 3
AC × 16
WA × 2
AC × 20
WA × 5
RE × 5
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 396 ms 24664 KB
sample_02.txt AC 375 ms 24668 KB
sample_03.txt AC 381 ms 24660 KB
subtask1_01.txt AC 413 ms 24668 KB
subtask1_02.txt AC 385 ms 24672 KB
subtask1_03.txt AC 376 ms 24664 KB
subtask1_04.txt AC 445 ms 28520 KB
subtask1_05.txt AC 378 ms 24664 KB
subtask1_06.txt WA 416 ms 25552 KB
subtask1_07.txt AC 464 ms 28560 KB
subtask1_08.txt AC 492 ms 28868 KB
subtask1_09.txt WA 477 ms 28868 KB
subtask1_10.txt AC 476 ms 28428 KB
subtask1_11.txt AC 488 ms 29048 KB
subtask1_12.txt AC 462 ms 28424 KB
subtask1_13.txt AC 474 ms 28508 KB
subtask1_14.txt AC 472 ms 28528 KB
subtask1_15.txt AC 472 ms 28396 KB
subtask2_01.txt AC 443 ms 25440 KB
subtask2_02.txt AC 426 ms 25688 KB
subtask2_03.txt AC 602 ms 36792 KB
subtask2_04.txt AC 451 ms 28288 KB
subtask2_05.txt WA 527 ms 35888 KB
subtask2_06.txt RE 565 ms 36988 KB
subtask2_07.txt AC 680 ms 36888 KB
subtask2_08.txt WA 727 ms 37236 KB
subtask2_09.txt WA 727 ms 38320 KB
subtask2_10.txt RE 729 ms 38308 KB
subtask2_11.txt AC 683 ms 37500 KB
subtask2_12.txt AC 707 ms 36760 KB
subtask2_13.txt RE 724 ms 38404 KB
subtask2_14.txt RE 715 ms 36764 KB
subtask2_15.txt RE 725 ms 36972 KB