Submission #172171


Source Code Expand

Copy
R, C ,D = [int(x) for x in raw_input().strip().split()]

data = [[int(x) for x in raw_input().strip().split() ] for _ in xrange(R)]
max_takoyaki = 0

for i in xrange(D):
    move_tuple = [0,0]
    cnt = 1
    flag = i
    while(flag):
        if move_tuple[0] == R-1: cnt = -1
        if move_tuple[0] == 0: cnt = 1
        move_tuple[0] += cnt
        flag -= 1

    flag = D-i
    while(flag):
        if move_tuple[1] == C-1: cnt = -1
        if move_tuple[1] == 0: cnt = 1
        move_tuple[1] += cnt
        flag -= 1

    takoyaki = data[move_tuple[0]][move_tuple[1]]
    if takoyaki > max_takoyaki: max_takoyaki = takoyaki

print max_takoyaki

Submission Info

Submission Time
Task B - 謎の人物X
User shin0420
Language Python (2.7.3)
Score 0
Code Size 675 Byte
Status WA
Exec Time 2035 ms
Memory 38324 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 0 / 60 0 / 40
Status
AC × 3
AC × 9
WA × 9
AC × 11
WA × 16
TLE × 3
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 48 ms 3396 KB
sample_02.txt AC 54 ms 3380 KB
sample_03.txt AC 47 ms 3384 KB
subtask1_01.txt AC 48 ms 3376 KB
subtask1_02.txt AC 54 ms 3396 KB
subtask1_03.txt AC 52 ms 3388 KB
subtask1_04.txt WA 63 ms 3636 KB
subtask1_05.txt AC 50 ms 3392 KB
subtask1_06.txt WA 50 ms 3508 KB
subtask1_07.txt WA 78 ms 3632 KB
subtask1_08.txt AC 63 ms 3492 KB
subtask1_09.txt AC 61 ms 3500 KB
subtask1_10.txt WA 74 ms 3632 KB
subtask1_11.txt WA 70 ms 3628 KB
subtask1_12.txt WA 72 ms 3760 KB
subtask1_13.txt WA 74 ms 3632 KB
subtask1_14.txt WA 71 ms 3576 KB
subtask1_15.txt WA 68 ms 3620 KB
subtask2_01.txt AC 81 ms 3504 KB
subtask2_02.txt AC 190 ms 3500 KB
subtask2_03.txt WA 740 ms 12264 KB
subtask2_04.txt WA 111 ms 3632 KB
subtask2_05.txt WA 144 ms 4536 KB
subtask2_06.txt TLE 2031 ms 8112 KB
subtask2_07.txt AC 1173 ms 12132 KB
subtask2_08.txt AC 918 ms 38324 KB
subtask2_09.txt AC 1324 ms 32072 KB
subtask2_10.txt TLE 2035 ms 32168 KB
subtask2_11.txt WA 1037 ms 19948 KB
subtask2_12.txt WA 923 ms 32300 KB
subtask2_13.txt WA 1766 ms 32324 KB
subtask2_14.txt TLE 2033 ms 32436 KB
subtask2_15.txt WA 1790 ms 32420 KB