Submission #172330


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+1):
    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 2082 ms
Memory 38296 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 × 17
TLE × 2
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 51 ms 3488 KB
sample_02.txt AC 59 ms 3496 KB
sample_03.txt AC 54 ms 3600 KB
subtask1_01.txt AC 56 ms 3508 KB
subtask1_02.txt AC 60 ms 3504 KB
subtask1_03.txt AC 55 ms 3604 KB
subtask1_04.txt WA 64 ms 3728 KB
subtask1_05.txt AC 58 ms 3496 KB
subtask1_06.txt WA 58 ms 3476 KB
subtask1_07.txt WA 80 ms 3772 KB
subtask1_08.txt AC 75 ms 3640 KB
subtask1_09.txt AC 68 ms 3608 KB
subtask1_10.txt WA 74 ms 3732 KB
subtask1_11.txt WA 70 ms 3744 KB
subtask1_12.txt WA 76 ms 3752 KB
subtask1_13.txt WA 74 ms 3728 KB
subtask1_14.txt WA 58 ms 3728 KB
subtask1_15.txt WA 75 ms 3800 KB
subtask2_01.txt AC 77 ms 3476 KB
subtask2_02.txt AC 166 ms 3500 KB
subtask2_03.txt WA 653 ms 12432 KB
subtask2_04.txt WA 100 ms 3604 KB
subtask2_05.txt WA 134 ms 4704 KB
subtask2_06.txt WA 1997 ms 8180 KB
subtask2_07.txt AC 1007 ms 12172 KB
subtask2_08.txt AC 939 ms 38296 KB
subtask2_09.txt AC 1300 ms 32300 KB
subtask2_10.txt TLE 2082 ms 32392 KB
subtask2_11.txt WA 977 ms 20008 KB
subtask2_12.txt WA 922 ms 32420 KB
subtask2_13.txt WA 1552 ms 32424 KB
subtask2_14.txt TLE 2082 ms 32424 KB
subtask2_15.txt WA 1643 ms 32420 KB