Submission #172314


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 <= R ; i++){
            for(int j = 0; j <= C; 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 1695 Byte
Status WA
Exec Time 740 ms
Memory 38456 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 0 / 60 0 / 40
Status
AC × 2
WA × 1
AC × 14
WA × 4
AC × 15
WA × 4
RE × 11
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 WA 390 ms 24584 KB
sample_02.txt AC 386 ms 24628 KB
sample_03.txt AC 379 ms 24620 KB
subtask1_01.txt AC 385 ms 24624 KB
subtask1_02.txt AC 386 ms 24620 KB
subtask1_03.txt AC 381 ms 24600 KB
subtask1_04.txt AC 457 ms 28372 KB
subtask1_05.txt AC 383 ms 24616 KB
subtask1_06.txt WA 412 ms 25396 KB
subtask1_07.txt AC 446 ms 28312 KB
subtask1_08.txt AC 461 ms 28712 KB
subtask1_09.txt WA 459 ms 28824 KB
subtask1_10.txt AC 479 ms 28488 KB
subtask1_11.txt AC 472 ms 28156 KB
subtask1_12.txt AC 471 ms 28700 KB
subtask1_13.txt AC 464 ms 28720 KB
subtask1_14.txt WA 463 ms 28552 KB
subtask1_15.txt AC 465 ms 28504 KB
subtask2_01.txt RE 405 ms 25520 KB
subtask2_02.txt RE 414 ms 25780 KB
subtask2_03.txt AC 604 ms 36936 KB
subtask2_04.txt AC 433 ms 27624 KB
subtask2_05.txt WA 537 ms 36188 KB
subtask2_06.txt AC 585 ms 37204 KB
subtask2_07.txt RE 681 ms 38456 KB
subtask2_08.txt RE 740 ms 38420 KB
subtask2_09.txt RE 696 ms 36848 KB
subtask2_10.txt RE 694 ms 37300 KB
subtask2_11.txt RE 694 ms 36964 KB
subtask2_12.txt RE 692 ms 37536 KB
subtask2_13.txt RE 736 ms 38448 KB
subtask2_14.txt RE 707 ms 37396 KB
subtask2_15.txt RE 702 ms 37096 KB