Submission #74958844


Source Code Expand

toInt(s=readline()) = parse(Int,s)
toVector(s=readline()) = parse.(Int,split(s))

function main()
    N = toInt()
    A = toVector()
    flg = 0
    for j in 1:N-2
        if A[j] == A[j+1] == A[j+2]
            println("Yes")
            flg = 1
            break
        end
    end
    if flg == 0
        println("No")
    end
end

main()

Submission Info

Submission Time
Task B - Triple Four
User kirbysweet
Language Julia (Julia 1.11.6)
Score 100
Code Size 361 Byte
Status AC
Exec Time 176 ms
Memory 221160 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 5
AC × 20
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 176 ms 221092 KiB
00_sample_01.txt AC 175 ms 221060 KiB
00_sample_02.txt AC 172 ms 221104 KiB
00_sample_03.txt AC 172 ms 221008 KiB
00_sample_04.txt AC 175 ms 221000 KiB
01_handmade_00.txt AC 172 ms 221132 KiB
01_handmade_01.txt AC 174 ms 221032 KiB
01_handmade_02.txt AC 174 ms 221016 KiB
01_handmade_03.txt AC 173 ms 221080 KiB
01_handmade_04.txt AC 173 ms 221004 KiB
02_random_00.txt AC 173 ms 221076 KiB
02_random_01.txt AC 174 ms 221076 KiB
02_random_02.txt AC 173 ms 221132 KiB
02_random_03.txt AC 173 ms 221028 KiB
02_random_04.txt AC 172 ms 221076 KiB
02_random_05.txt AC 174 ms 221144 KiB
02_random_06.txt AC 172 ms 221052 KiB
02_random_07.txt AC 174 ms 221040 KiB
02_random_08.txt AC 174 ms 221160 KiB
02_random_09.txt AC 174 ms 220988 KiB