Submission #172194


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 A - 経過日数
User shobonara
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 1697 Byte
Status RE
Exec Time 417 ms
Memory 24844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
RE × 4
RE × 24
Set Name Test Cases
Sample subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask0_sample04.txt
All subtask0_sample01.txt, subtask0_sample02.txt, subtask0_sample03.txt, subtask0_sample04.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, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt
Case Name Status Exec Time Memory
subtask0_sample01.txt RE 401 ms 24844 KB
subtask0_sample02.txt RE 390 ms 24800 KB
subtask0_sample03.txt RE 391 ms 24676 KB
subtask0_sample04.txt RE 390 ms 24676 KB
subtask1_01.txt RE 390 ms 24676 KB
subtask1_02.txt RE 388 ms 24832 KB
subtask1_03.txt RE 388 ms 24792 KB
subtask1_04.txt RE 387 ms 24788 KB
subtask1_05.txt RE 388 ms 24664 KB
subtask1_06.txt RE 391 ms 24668 KB
subtask1_07.txt RE 412 ms 24800 KB
subtask1_08.txt RE 406 ms 24800 KB
subtask1_09.txt RE 414 ms 24672 KB
subtask1_10.txt RE 406 ms 24800 KB
subtask1_11.txt RE 409 ms 24812 KB
subtask1_12.txt RE 406 ms 24732 KB
subtask1_13.txt RE 412 ms 24788 KB
subtask1_14.txt RE 404 ms 24664 KB
subtask1_15.txt RE 403 ms 24800 KB
subtask1_16.txt RE 417 ms 24668 KB
subtask1_17.txt RE 409 ms 24796 KB
subtask1_18.txt RE 400 ms 24792 KB
subtask1_19.txt RE 417 ms 24796 KB
subtask1_20.txt RE 407 ms 24676 KB