Submission #172280


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(true){//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 1703 Byte
Status WA
Exec Time 741 ms
Memory 38780 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 0 / 60 0 / 40
Status
AC × 1
WA × 2
AC × 9
WA × 9
AC × 12
WA × 13
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 WA 415 ms 24548 KB
sample_02.txt AC 411 ms 24676 KB
sample_03.txt WA 411 ms 24664 KB
subtask1_01.txt WA 405 ms 24676 KB
subtask1_02.txt AC 422 ms 24640 KB
subtask1_03.txt AC 401 ms 24668 KB
subtask1_04.txt AC 485 ms 28664 KB
subtask1_05.txt WA 405 ms 24668 KB
subtask1_06.txt WA 438 ms 25504 KB
subtask1_07.txt WA 494 ms 28360 KB
subtask1_08.txt AC 482 ms 28700 KB
subtask1_09.txt WA 500 ms 28724 KB
subtask1_10.txt AC 485 ms 28500 KB
subtask1_11.txt AC 481 ms 28376 KB
subtask1_12.txt WA 496 ms 28572 KB
subtask1_13.txt AC 494 ms 28536 KB
subtask1_14.txt WA 489 ms 28468 KB
subtask1_15.txt AC 524 ms 28660 KB
subtask2_01.txt AC 444 ms 25636 KB
subtask2_02.txt AC 453 ms 25696 KB
subtask2_03.txt WA 596 ms 37560 KB
subtask2_04.txt WA 467 ms 27872 KB
subtask2_05.txt WA 561 ms 36136 KB
subtask2_06.txt RE 601 ms 37508 KB
subtask2_07.txt AC 652 ms 36744 KB
subtask2_08.txt WA 693 ms 37308 KB
subtask2_09.txt WA 722 ms 37840 KB
subtask2_10.txt RE 707 ms 38780 KB
subtask2_11.txt AC 715 ms 37208 KB
subtask2_12.txt WA 708 ms 38216 KB
subtask2_13.txt RE 718 ms 37708 KB
subtask2_14.txt RE 736 ms 36772 KB
subtask2_15.txt RE 741 ms 37888 KB