Submission #172247


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 = [1,1]
    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 673 Byte
Status WA
Exec Time 2033 ms
Memory 38248 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 0 / 60 0 / 40
Status
AC × 2
WA × 1
AC × 6
WA × 12
AC × 7
WA × 20
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 WA 58 ms 3324 KB
sample_02.txt AC 52 ms 3332 KB
sample_03.txt AC 46 ms 3376 KB
subtask1_01.txt WA 46 ms 3380 KB
subtask1_02.txt AC 51 ms 3328 KB
subtask1_03.txt AC 49 ms 3380 KB
subtask1_04.txt WA 63 ms 3624 KB
subtask1_05.txt WA 48 ms 3376 KB
subtask1_06.txt WA 50 ms 3504 KB
subtask1_07.txt WA 77 ms 3624 KB
subtask1_08.txt AC 62 ms 3448 KB
subtask1_09.txt WA 60 ms 3508 KB
subtask1_10.txt WA 73 ms 3560 KB
subtask1_11.txt AC 68 ms 3628 KB
subtask1_12.txt WA 70 ms 3576 KB
subtask1_13.txt WA 70 ms 3584 KB
subtask1_14.txt WA 56 ms 3624 KB
subtask1_15.txt WA 69 ms 3628 KB
subtask2_01.txt AC 81 ms 3492 KB
subtask2_02.txt AC 205 ms 3504 KB
subtask2_03.txt WA 742 ms 12464 KB
subtask2_04.txt WA 109 ms 3628 KB
subtask2_05.txt WA 142 ms 4520 KB
subtask2_06.txt TLE 2029 ms 8188 KB
subtask2_07.txt AC 1103 ms 12204 KB
subtask2_08.txt WA 939 ms 38248 KB
subtask2_09.txt WA 1303 ms 32176 KB
subtask2_10.txt TLE 2032 ms 32200 KB
subtask2_11.txt WA 997 ms 19824 KB
subtask2_12.txt WA 905 ms 32248 KB
subtask2_13.txt WA 1747 ms 32428 KB
subtask2_14.txt TLE 2033 ms 32456 KB
subtask2_15.txt WA 1784 ms 32356 KB