Submission #19662581


Source Code Expand

Copy
read N T
awk -v T=$T ' \
{
    if (prev>0) {
        diff = $1 - prev
        s += diff>T?T:diff
    }
    prev = $1
}
END {print s+T}
'

Submission Info

Submission Time
Task B - 自動ドア
User wakamenod
Language Bash (5.0.11)
Score 100
Code Size 148 Byte
Status AC
Exec Time 68 ms
Memory 4240 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 50 / 50 50 / 50
Status
AC × 2
AC × 31
AC × 61
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
Subtask1 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, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.txt, sample_01.txt, sample_02.txt
Subtask2 sample_01.txt, sample_02.txt, sample_23.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, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.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, subtask2_16.txt, subtask2_17.txt, subtask2_18.txt, subtask2_19.txt, subtask2_20.txt, subtask2_21.txt, subtask2_22.txt, subtask2_23.txt, subtask2_24.txt, subtask2_25.txt, subtask2_26.txt, subtask2_27.txt, subtask2_28.txt, subtask2_29.txt
Case Name Status Exec Time Memory
sample_01.txt AC 15 ms 4124 KB
sample_02.txt AC 6 ms 4080 KB
sample_23.txt AC 6 ms 3964 KB
subtask1_01.txt AC 57 ms 3992 KB
subtask1_02.txt AC 34 ms 4028 KB
subtask1_03.txt AC 54 ms 3916 KB
subtask1_04.txt AC 37 ms 3948 KB
subtask1_05.txt AC 23 ms 3824 KB
subtask1_06.txt AC 20 ms 3792 KB
subtask1_07.txt AC 61 ms 4176 KB
subtask1_08.txt AC 56 ms 4048 KB
subtask1_09.txt AC 48 ms 3992 KB
subtask1_10.txt AC 26 ms 3852 KB
subtask1_11.txt AC 45 ms 4016 KB
subtask1_12.txt AC 57 ms 3876 KB
subtask1_13.txt AC 55 ms 3792 KB
subtask1_14.txt AC 53 ms 3988 KB
subtask1_15.txt AC 62 ms 3924 KB
subtask1_16.txt AC 65 ms 4168 KB
subtask1_17.txt AC 64 ms 4060 KB
subtask1_18.txt AC 60 ms 3976 KB
subtask1_19.txt AC 59 ms 3856 KB
subtask1_20.txt AC 65 ms 3976 KB
subtask1_21.txt AC 68 ms 3980 KB
subtask1_22.txt AC 63 ms 4124 KB
subtask1_23.txt AC 64 ms 4240 KB
subtask1_24.txt AC 64 ms 3836 KB
subtask1_25.txt AC 64 ms 3940 KB
subtask1_26.txt AC 62 ms 3856 KB
subtask1_27.txt AC 64 ms 3840 KB
subtask1_28.txt AC 66 ms 3828 KB
subtask1_29.txt AC 63 ms 3896 KB
subtask2_01.txt AC 52 ms 4024 KB
subtask2_02.txt AC 47 ms 3980 KB
subtask2_03.txt AC 45 ms 3912 KB
subtask2_04.txt AC 21 ms 4012 KB
subtask2_05.txt AC 52 ms 4056 KB
subtask2_06.txt AC 35 ms 4132 KB
subtask2_07.txt AC 40 ms 3960 KB
subtask2_08.txt AC 31 ms 4028 KB
subtask2_09.txt AC 48 ms 4168 KB
subtask2_10.txt AC 64 ms 3808 KB
subtask2_11.txt AC 42 ms 4076 KB
subtask2_12.txt AC 46 ms 3780 KB
subtask2_13.txt AC 37 ms 3972 KB
subtask2_14.txt AC 34 ms 4056 KB
subtask2_15.txt AC 59 ms 4032 KB
subtask2_16.txt AC 62 ms 4140 KB
subtask2_17.txt AC 66 ms 4032 KB
subtask2_18.txt AC 65 ms 3780 KB
subtask2_19.txt AC 66 ms 3800 KB
subtask2_20.txt AC 68 ms 4132 KB
subtask2_21.txt AC 66 ms 3972 KB
subtask2_22.txt AC 68 ms 4008 KB
subtask2_23.txt AC 65 ms 3960 KB
subtask2_24.txt AC 64 ms 3960 KB
subtask2_25.txt AC 65 ms 3868 KB
subtask2_26.txt AC 63 ms 3980 KB
subtask2_27.txt AC 62 ms 3948 KB
subtask2_28.txt AC 64 ms 3940 KB
subtask2_29.txt AC 59 ms 4036 KB