Submission #64748879


Source Code Expand

N = int(input())

state = "o"
ans = 0

for _ in range(N):
    s = input()
    if s == "login":
        state = "i"
    elif s == "logout":
        state = "o"
    elif s == "private" and state == "o":
        ans += 1
        
print(ans)

Submission Info

Submission Time
Task B - Unauthorized
User tamagonist
Language Python (PyPy 3.10-v7.3.12)
Score 200
Code Size 251 Byte
Status AC
Exec Time 57 ms
Memory 76700 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 16
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 55 ms 76224 KiB
00_sample_01.txt AC 55 ms 76248 KiB
00_sample_02.txt AC 56 ms 76484 KiB
01_random_03.txt AC 56 ms 76340 KiB
01_random_04.txt AC 57 ms 76432 KiB
01_random_05.txt AC 57 ms 76700 KiB
01_random_06.txt AC 56 ms 76632 KiB
01_random_07.txt AC 56 ms 76264 KiB
01_random_08.txt AC 56 ms 76256 KiB
01_random_09.txt AC 56 ms 76496 KiB
01_random_10.txt AC 55 ms 76472 KiB
01_random_11.txt AC 56 ms 76516 KiB
01_random_12.txt AC 55 ms 76648 KiB
01_random_13.txt AC 56 ms 76272 KiB
01_random_14.txt AC 57 ms 76344 KiB
01_random_15.txt AC 56 ms 76460 KiB